glut: only call glFinish() in processWindowWorkList() for indirect contexts.
Basically, do as the comment says.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user