summaryrefslogtreecommitdiffstats
path: root/progs/demos
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-09-29 18:46:27 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-09-29 18:46:27 +0000
commit1ad6e0809069833f17578a9751ac8408362d410c (patch)
tree16d793624fadb4387ef42be38b23c6cae34c016f /progs/demos
parentb2404b132dd7fc1058851d56414f9c1be17f0a2f (diff)
call glFinish if drawing to front buffer
Diffstat (limited to 'progs/demos')
-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 82d32b0705c..d2f57486744 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();
}