From 5a74416d8608df35bf20ef863ba3b5c22b3de485 Mon Sep 17 00:00:00 2001 From: Christopher John Purnell Date: Mon, 7 Jul 2003 15:37:39 +0000 Subject: [PATCH] glutMainLoopEvent() was not closing windows properly. 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 --- src/freeglut_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ) -- 1.7.10.4