Leave game mode on "deinitialization" if we entered it, per e-mail from John Tsiombikas dated 12/19/11 at 7:07 AM

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@960 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
fayjf 2011-12-20 03:21:25 +00:00
parent 7540c81b88
commit 4dbbd19e46

View File

@ -413,6 +413,11 @@ void fgDeinitialize( void )
return; return;
} }
/* If we're in game mode, we want to leave game mode */
if( fgStructure.GameModeWindow ) {
glutLeaveGameMode();
}
/* If there was a menu created, destroy the rendering context */ /* If there was a menu created, destroy the rendering context */
if( fgStructure.MenuContext ) if( fgStructure.MenuContext )
{ {