call glFinish if drawing to front buffer
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 29 Sep 2005 18:46:27 +0000 (18:46 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 29 Sep 2005 18:46:27 +0000 (18:46 +0000)
progs/demos/drawpix.c

index 82d32b0705c29b8a1204c81f7fe4d4bd06704ad9..d2f57486744ecb5b98b80da050b0cd270983542f 100644 (file)
@@ -71,7 +71,9 @@ static void Display( void )
    glDisable(GL_SCISSOR_TEST);
    glDisable(GL_FOG);
 
-   if (!DrawFront)
+   if (DrawFront)
+      glFinish();
+   else
       glutSwapBuffers();
 }