From: John F. Fay Date: Tue, 20 Dec 2011 03:21:25 +0000 (+0000) Subject: Leave game mode on "deinitialization" if we entered it, per e-mail from John Tsiombik... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=f22de63d436e44a5237ba55a7373c9514f23fd45;p=freeglut 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: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@960 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_init.c b/src/freeglut_init.c index 8c254bc..f59a456 100644 --- a/src/freeglut_init.c +++ b/src/freeglut_init.c @@ -413,6 +413,11 @@ void fgDeinitialize( void ) 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( fgStructure.MenuContext ) {