summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-03-03 03:14:25 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-03-03 03:14:25 +0000
commit078418208fc521c3c621961cf76f39e6b6659bdb (patch)
tree2c829ebdf784090d4f6861168e747f52d1af52c0 /progs
parenta59ce9041df800936905f64287b82bc2d42d1c8b (diff)
added glFinish with comment
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/osdemo.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/progs/demos/osdemo.c b/progs/demos/osdemo.c
index 25632bc2760..22321cc10f1 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);