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:
parent
245a3e8b82
commit
48e8da9920
@ -1048,6 +1048,11 @@ void FGAPIENTRY glutMainLoopEvent( void )
|
|||||||
fghDisplayAll();
|
fghDisplayAll();
|
||||||
}
|
}
|
||||||
#endif
|
#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 () ;
|
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 there are no more windows open, stop execution
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user