From: Keith Whitwell Date: Thu, 19 Aug 2010 23:08:22 +0000 (+0100) Subject: glx/xlib: no need to call XSync from XMesaFlush X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8570232b3b7930bd2ef58a337e9d57b12d3a8874;p=mesa.git glx/xlib: no need to call XSync from XMesaFlush Try to eliminate some unnecessary X server round trips. --- diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index c0c418306fb..3c9d1497617 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.c +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c @@ -1154,7 +1154,7 @@ void XMesaFlush( XMesaContext c ) xmdpy->screen->fence_finish(xmdpy->screen, fence, 0); xmdpy->screen->fence_reference(xmdpy->screen, &fence, NULL); } - XSync( c->xm_visual->display, False ); + XFlush( c->xm_visual->display ); } }