From: <dc...@us...> - 2012-11-19 07:08:13
|
Revision: 1427 http://freeglut.svn.sourceforge.net/freeglut/?rev=1427&view=rev Author: dcnieho Date: 2012-11-19 07:08:07 +0000 (Mon, 19 Nov 2012) Log Message: ----------- backporting r1344 Revision Links: -------------- http://freeglut.svn.sourceforge.net/freeglut/?rev=1344&view=rev Modified Paths: -------------- tags/FG_2_8_1_RC1/freeglut/src/freeglut_main.c Modified: tags/FG_2_8_1_RC1/freeglut/src/freeglut_main.c =================================================================== --- tags/FG_2_8_1_RC1/freeglut/src/freeglut_main.c 2012-11-19 07:06:31 UTC (rev 1426) +++ tags/FG_2_8_1_RC1/freeglut/src/freeglut_main.c 2012-11-19 07:08:07 UTC (rev 1427) @@ -177,6 +177,7 @@ * the already-drawn part does not get drawn again and things look funny. * But without this we get this bad behaviour whenever we resize the * window. + * DN: Hmm.. the above sounds like a concern only in single buffered mode... */ window->State.Redisplay = GL_TRUE; @@ -203,13 +204,17 @@ if( window->State.NeedToResize ) { + /* Set need to resize to false before calling fghReshapeWindow, otherwise + in the case the user's reshape callback calls glutReshapeWindow, + his request would get canceled after fghReshapeWindow gets called. + */ + window->State.NeedToResize = GL_FALSE; + fghReshapeWindow( window, window->State.Width, window->State.Height ); - - window->State.NeedToResize = GL_FALSE; } INVOKE_WCB( *window, Display, ( ) ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |