Moved call to fgCloseWindows() from glutMainLoop() to the end of glutMainLoopEvent().
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@125
7f0cb862-5218-0410-a997-
914c9d46530a
fghDisplayAll();
}
#endif
fghDisplayAll();
}
#endif
+
+ /*
+ * If an event caused a window to be closed, do the actual closing here
+ */
+ fgCloseWindows () ;
glutMainLoopEvent () ;
/*
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 )
* If there are no more windows open, stop execution
*/
if ( fgStructure.Windows.First == NULL )