|
From: <dc...@us...> - 2012-06-15 05:47:38
|
Revision: 1344
http://freeglut.svn.sourceforge.net/freeglut/?rev=1344&view=rev
Author: dcnieho
Date: 2012-06-15 05:47:32 +0000 (Fri, 15 Jun 2012)
Log Message:
-----------
as per Ioannis Petikas' suggestion on the mailing list, set NeedToResize
to false before calling fghReshapeWindow
Modified Paths:
--------------
trunk/freeglut/freeglut/src/fg_main.c
Modified: trunk/freeglut/freeglut/src/fg_main.c
===================================================================
--- trunk/freeglut/freeglut/src/fg_main.c 2012-06-12 09:33:25 UTC (rev 1343)
+++ trunk/freeglut/freeglut/src/fg_main.c 2012-06-15 05:47:32 UTC (rev 1344)
@@ -88,6 +88,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;
@@ -120,13 +121,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.
|