int FGAPIENTRY glutEnterGameMode( void )
{
if( fgStructure.GameMode )
- fgAddToWindowDestroyList( fgStructure.GameMode, GL_TRUE );
+ fgAddToWindowDestroyList( fgStructure.GameMode );
else
fghRememberState( );
fgState.GameModeSize.X, fgState.GameModeSize.Y, GL_TRUE, GL_FALSE
);
+ fgStructure.GameMode->State.IsGameMode = GL_TRUE;
+
#if TARGET_HOST_UNIX_X11
/* Move the window up to the topleft corner */
{
freeglut_return_if_fail( fgStructure.GameMode );
- fgAddToWindowDestroyList( fgStructure.GameMode, GL_TRUE );
+ fgStructure.GameMode->State.IsGameMode = GL_FALSE;
+
+ fgAddToWindowDestroyList( fgStructure.GameMode );
#if TARGET_HOST_UNIX_X11