glx/xlib: no need to call XSync from XMesaFlush
authorKeith Whitwell <keithw@vmware.com>
Thu, 19 Aug 2010 23:08:22 +0000 (00:08 +0100)
committerKeith Whitwell <keithw@vmware.com>
Sun, 22 Aug 2010 13:48:24 +0000 (14:48 +0100)
Try to eliminate some unnecessary X server round trips.

src/gallium/state_trackers/glx/xlib/xm_api.c

index c0c418306fb84cd0cee24e62eb4e10cb2a3a9a7c..3c9d14976176350232e5ff2a71a301dafa416811 100644 (file)
@@ -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 );
    }
 }