glut: only call glFinish() in processWindowWorkList() for indirect contexts.
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 11 Sep 2008 17:05:13 +0000 (11:05 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 11 Sep 2008 17:05:13 +0000 (11:05 -0600)
Basically, do as the comment says.

src/glut/glx/glut_event.c

index 4e67da6..443f9a8 100644 (file)
@@ -1317,7 +1317,12 @@ processWindowWorkList(GLUTwindow * window)
        is where the finish works gets queued for indirect
        contexts. */
     __glutSetWindow(window);
-    glFinish();
+#if !defined(_WIN32)
+    if (!window->isDirect)
+#endif
+    {
+       glFinish();
+    }
   }
   if (workMask & GLUT_DEBUG_WORK) {
     __glutSetWindow(window);