Hello and thank you for your interest.  The "TODO" list has a note that we nned to add a "glutExit" call which sounds very much like what you need--except that we haven't added it yet.
Everybody else,
    What do the rest of us think about it?

John F. Fay
Technical Fellow, Jacobs/Sverdrup TEAS Group


From: [] On Behalf Of Larry E. Ramey
Sent: Wednesday, November 09, 2005 3:37 PM
Subject: [Freeglut-developer] glutshutdown and restart

I have a program where I want to stop and restart the graphics context. However, freeglut locked up when I tried this. I discovered that it wasn't shutting itself down properly even though all the code already exists to do this. All I had to do was add this  function to freeglut_ext.h
  FGAPI void    FGAPIENTRY glutShutdown( void );
then in freeglut_main.c


void FGAPIENTRY glutShutdown( void )
  fgDeinitialize( );

It works fine on the two platforms that I use (linux RH9 and windoze MSVC 7.1)
If it is acceptable to the powers that be I would really like to see this added back into the freeglut repository so that I wouldn't have to distribute my own hacked version of freeglut out to all my users.
Larry E. Ramey

Yahoo! FareChase - Search multiple travel sites in one click.