added missing glFinish()
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 29 Jan 2005 12:57:36 +0000 (12:57 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 29 Jan 2005 12:57:36 +0000 (12:57 +0000)
progs/demos/osdemo16.c
progs/demos/osdemo32.c

index f2f321b9b3e0b3c2c1e70c355886a25c7ad03edf..6f892620ce63e265fa8582c85852b602c8195ab8 100644 (file)
@@ -128,6 +128,11 @@ static void render_image( void )
 
    glPopMatrix();
 
+   /* This is very important!!!
+    * Make sure buffered commands are finished!!!
+    */
+   glFinish();
+
    gluDeleteQuadric(qobj);
 
    {
index 66e821ad4e8698904d994b6edf1223664cdb360e..b425a56c848a1fc614d41d08a9a6219b17b933b7 100644 (file)
@@ -127,6 +127,11 @@ static void render_image( void )
 
    glPopMatrix();
 
+   /* This is very important!!!
+    * Make sure buffered commands are finished!!!
+    */
+   glFinish();
+
    gluDeleteQuadric(qobj);
 
    {