Added a call to fgDeinitialize() before the call to exit() in fgError().
authorChristopher John Purnell <cjp@lost.org.uk>
Sat, 15 Nov 2003 16:52:46 +0000 (16:52 +0000)
committerChristopher John Purnell <cjp@lost.org.uk>
Sat, 15 Nov 2003 16:52:46 +0000 (16:52 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@350 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_main.c

index 6a08d2d..bfa4fc7 100644 (file)
@@ -340,6 +340,9 @@ void fgError( const char *fmt, ... )
 
     va_end( ap );
 
+    if ( fgState.Initalized )
+        fgDeinitialize( );
+
     exit( 1 );
 }