Fixing a 'gamemode at_exit' bug courtesy of Diederick Niehorster per e-mail dated 6/1/11 1:50 AM
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@922 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
3a5a72436b
commit
f106c8b1e8
@ -1332,10 +1332,11 @@ void fgOpenWindow( SFG_Window* window, const char* title,
|
|||||||
*/
|
*/
|
||||||
void fgCloseWindow( SFG_Window* window )
|
void fgCloseWindow( SFG_Window* window )
|
||||||
{
|
{
|
||||||
/* if we're in gamemode, call glutLeaveGameMode first to make sure the
|
/* if we're in gamemode and we're closing the gamemode window,
|
||||||
* gamemode is properly closed before closing the window
|
* call glutLeaveGameMode first to make sure the gamemode is
|
||||||
|
* properly closed before closing the window
|
||||||
*/
|
*/
|
||||||
if (fgStructure.GameModeWindow != NULL)
|
if (fgStructure.GameModeWindow != NULL && fgStructure.GameModeWindow->ID==window->ID)
|
||||||
glutLeaveGameMode();
|
glutLeaveGameMode();
|
||||||
|
|
||||||
#if TARGET_HOST_POSIX_X11
|
#if TARGET_HOST_POSIX_X11
|
||||||
|
Reference in New Issue
Block a user