X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_main.c;h=f9c78ef58d9bb40e09d1fd388dcfc244be5c1a92;hb=73a6a2749dd40b935863f2e226ab805b88cd0351;hp=5d6cfa11542e75cf21aa1133fa4aa271465d3059;hpb=18086a5bd589f07a3a367402e4beb7eb67ccc43f;p=freeglut diff --git a/src/freeglut_main.c b/src/freeglut_main.c index 5d6cfa1..f9c78ef 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -1048,6 +1048,11 @@ void FGAPIENTRY glutMainLoopEvent( void ) fghDisplayAll(); } #endif + + /* + * If an event caused a window to be closed, do the actual closing here + */ + fgCloseWindows () ; } /* @@ -1095,11 +1100,6 @@ void FGAPIENTRY glutMainLoop( void ) glutMainLoopEvent () ; /* - * If an event caused a window to be closed, do the actual closing here - */ - fgCloseWindows () ; - - /* * If there are no more windows open, stop execution */ if ( fgStructure.Windows.First == NULL )