summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-03-03 03:14:55 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-03-03 03:14:55 +0000
commit4b3f54ecb1b9804abb178ed51491fdcc96b7e423 (patch)
treec1a3e431958716aa3df1e2c8b93a397a0c99b45f
parent3a55d83d218014a797699e4ec9d43ea544a188fe (diff)
added glFinish with comment
-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..bf8b8e90c88 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.9.4.1 2003/03/03 03:14:55 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);