summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--progs/demos/drawpix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/progs/demos/drawpix.c b/progs/demos/drawpix.c
index 82d32b0705..d2f5748674 100644
--- a/progs/demos/drawpix.c
+++ b/progs/demos/drawpix.c
@@ -71,7 +71,9 @@ static void Display( void )
glDisable(GL_SCISSOR_TEST);
glDisable(GL_FOG);
- if (!DrawFront)
+ if (DrawFront)
+ glFinish();
+ else
glutSwapBuffers();
}