From: Brian Paul Date: Mon, 3 Mar 2003 03:14:25 +0000 (+0000) Subject: added glFinish with comment X-Git-Tag: 062012170305~25984 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=078418208fc521c3c621961cf76f39e6b6659bdb;p=profile%2Fivi%2Fmesa.git added glFinish with comment --- diff --git a/progs/demos/osdemo.c b/progs/demos/osdemo.c index 25632bc..22321cc 100644 --- a/progs/demos/osdemo.c +++ b/progs/demos/osdemo.c @@ -1,4 +1,4 @@ -/* $Id: osdemo.c,v 1.9 2002/07/12 15:54:19 brianp Exp $ */ +/* $Id: osdemo.c,v 1.10 2003/03/03 03:14:25 brianp Exp $ */ /* * Demo of off-screen Mesa rendering @@ -139,6 +139,11 @@ static void render_image( void ) glPopMatrix(); + /* This is very important!!! + * Make sure buffered commands are finished!!! + */ + glFinish(); + Frames++; if (perf) { GLint t = glutGet(GLUT_ELAPSED_TIME);