freeglut_assert_ready is going to have to go at some point.
authorChristopher John Purnell <cjp@lost.org.uk>
Sat, 15 Nov 2003 19:11:09 +0000 (19:11 +0000)
committerChristopher John Purnell <cjp@lost.org.uk>
Sat, 15 Nov 2003 19:11:09 +0000 (19:11 +0000)
But for now I've moved setting fgState.Initalized to GL_FALSE.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@353 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_init.c

index 5fabb61..539fe83 100644 (file)
@@ -216,7 +216,7 @@ void fgDeinitialize( void )
         return;
     }
 
         return;
     }
 
-    fgState.Initalized = GL_FALSE;
+    /* fgState.Initalized = GL_FALSE; */
 
     /*
      * If there was a menu created, destroy the rendering context
 
     /*
      * If there was a menu created, destroy the rendering context
@@ -237,6 +237,8 @@ void fgDeinitialize( void )
 
     fgJoystickClose( );
 
 
     fgJoystickClose( );
 
+    fgState.Initalized = GL_FALSE;
+
     fgState.Position.X = -1;
     fgState.Position.Y = -1;
     fgState.Position.Use = GL_FALSE;
     fgState.Position.X = -1;
     fgState.Position.Y = -1;
     fgState.Position.Use = GL_FALSE;