From c60f977b7e8db821a790bce1fa34bcec47e23fd7 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 11 Sep 2008 11:05:13 -0600 Subject: glut: only call glFinish() in processWindowWorkList() for indirect contexts. Basically, do as the comment says. --- src/glut/glx/glut_event.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/glut/glx/glut_event.c b/src/glut/glx/glut_event.c index b5df7b2..cf34e05 100644 --- a/src/glut/glx/glut_event.c +++ b/src/glut/glx/glut_event.c @@ -1321,7 +1321,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); -- cgit v1.2.1