From: Kristian Høgsberg Date: Thu, 30 Aug 2007 17:00:20 +0000 (-0400) Subject: Do XSync() before resetting error handler. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c095f7e46adccdc65dc6623c1f73e87c5be782ad;p=mesa.git Do XSync() before resetting error handler. --- diff --git a/progs/xdemos/pbutil.c b/progs/xdemos/pbutil.c index d0bbd1b0fce..6c340fd7f9e 100644 --- a/progs/xdemos/pbutil.c +++ b/progs/xdemos/pbutil.c @@ -393,6 +393,7 @@ CreatePbuffer(Display *dpy, int screen, FBCONFIG config, pBuffer = None; } + XSync(dpy, False); /* Restore original X error handler */ (void) XSetErrorHandler(oldHandler);