OSDN Git Service

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 82d32b0..d2f5748 100644 (file)
@@ -71,7 +71,9 @@ static void Display( void )
    glDisable(GL_SCISSOR_TEST);
    glDisable(GL_FOG);
 
-   if (!DrawFront)
+   if (DrawFront)
+      glFinish();
+   else
       glutSwapBuffers();
 }