From 1ad6e0809069833f17578a9751ac8408362d410c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 29 Sep 2005 18:46:27 +0000 Subject: call glFinish if drawing to front buffer --- progs/demos/drawpix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'progs/demos') 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(); } -- cgit v1.2.3