Fixed the bug where glutDisplayFunc() was effectively invoking
authorRichard Rauch <rkr@olib.org>
Fri, 20 Feb 2004 05:05:35 +0000 (05:05 +0000)
committerRichard Rauch <rkr@olib.org>
Fri, 20 Feb 2004 05:05:35 +0000 (05:05 +0000)
glutPostRedsiplay().  This is wrong on the face of it, and may be
at root for some of the annoying "timing" issues we've had with
redisplay events being called inappopriately.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@467 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_callbacks.c

index 7f2e23b..baaeee1 100644 (file)
@@ -52,7 +52,6 @@ void FGAPIENTRY glutDisplayFunc( void (* callback)( void ) )
         fgError( "Fatal error in program.  NULL display callback not "
                  "permitted in GLUT 3.0+ or freeglut 2.0.1+\n" );
     SET_CALLBACK( Display );
-    fgStructure.Window->State.Redisplay = GL_TRUE;
 }
 
 /*