From: Brian Paul Date: Thu, 11 Sep 2008 17:05:13 +0000 (-0600) Subject: glut: only call glFinish() in processWindowWorkList() for indirect contexts. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d50d68a1c940ed9c8d8c65e8e33667fa90d5baa1;p=mesa.git glut: only call glFinish() in processWindowWorkList() for indirect contexts. Basically, do as the comment says. --- diff --git a/src/glut/glx/glut_event.c b/src/glut/glx/glut_event.c index 4e67da674ed..443f9a85740 100644 --- a/src/glut/glx/glut_event.c +++ b/src/glut/glx/glut_event.c @@ -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);