projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62f61e0
)
Leave game mode on "deinitialization" if we entered it, per e-mail from John Tsiombik...
author
John F. Fay
<johnffay@nettally.com>
Tue, 20 Dec 2011 03:21:25 +0000
(
03:21
+0000)
committer
John F. Fay
<johnffay@nettally.com>
Tue, 20 Dec 2011 03:21:25 +0000
(
03:21
+0000)
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
patch
|
blob
|
history
diff --git
a/src/freeglut_init.c
b/src/freeglut_init.c
index
8c254bc
..
f59a456
100644
(file)
--- 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 )
{