In case you didn't see it buried in my previous e-mail, I think I
have found a fix to the nasty bug in game mode that causes "freeglut" to
crash. The symptom is that "freeglut" crashes when the application tries to
go into game mode a second time. The cause, at least of the crash in the
example that I was just working on, is that the "fgStructure.GameMode"
window pointer is not nulled after its window is added to the destroy list.
To fix it, insert the following line in "freeglut_gamemode.c" on line 551:
void FGAPIENTRY glutLeaveGameMode( void )
freeglut_return_if_fail( fgStructure.GameMode );
fgStructure.GameMode->State.IsGameMode = GL_FALSE;
fgAddToWindowDestroyList( fgStructure.GameMode );
+ fgStructure.GameMode = NULL ;
XUngrabPointer( fgDisplay.Display, CurrentTime );
I am sure that this will be of interest to the OpenGLUT community as
John F. Fay
Get latest updates about Open Source Projects, Conferences and News.