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 4e67da674ed2d99cda18b70d659a135268b0d479..443f9a85740c92ad2e7775aee76999520ead6bb5 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);