Remember to call XSync() before resetting X error handler.
authorChris Rankin <rankincj@yahoo.com>
Mon, 29 Oct 2007 18:37:32 +0000 (14:37 -0400)
committerKristian Høgsberg <krh@redhat.com>
Mon, 29 Oct 2007 18:37:32 +0000 (14:37 -0400)
src/glx/x11/glxcmds.c

index 707e398d1d6028387a7b369704c1ea4ab06608e8..1497c6b30ebd7e5703d5b07d4010ff661fb03475 100644 (file)
@@ -106,6 +106,7 @@ static void GarbageCollectDRIDrawables(Display *dpy, __GLXscreenConfigs *sc)
        } while (__glxHashNext(sc->drawHash, &draw, (void *)&pdraw) == 1);
     }
 
+    XSync(dpy, GL_FALSE);
     XSetErrorHandler(oldXErrorHandler);
 }