From f22de63d436e44a5237ba55a7373c9514f23fd45 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Tue, 20 Dec 2011 03:21:25 +0000 Subject: [PATCH] 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 --- src/freeglut_init.c | 5 +++++ 1 file changed, 5 insertions(+) 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 ) { -- 1.7.10.4