glutMainLoopEvent() was not closing windows properly.

Moved call to fgCloseWindows() from glutMainLoop() to the end of glutMainLoopEvent().


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@125 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
cjp 2003-07-07 15:37:39 +00:00
parent 245a3e8b82
commit 48e8da9920

View File

@ -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 () ;
}
/*
@ -1094,11 +1099,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
*/