glx/xlib: remove another XSync
authorKeith Whitwell <keithw@vmware.com>
Thu, 19 Aug 2010 23:14:47 +0000 (00:14 +0100)
committerKeith Whitwell <keithw@vmware.com>
Sun, 22 Aug 2010 13:48:24 +0000 (14:48 +0100)
With this change, xmesa_get_window_size still does one round trip, but
that's better than doing two.

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

index 3c9d149..2fc400b 100644 (file)
@@ -263,7 +263,6 @@ xmesa_get_window_size(Display *dpy, XMesaBuffer b,
    Status stat;
 
    pipe_mutex_lock(xmdpy->mutex);
-   XSync(b->xm_visual->display, 0); /* added for Chromium */
    stat = get_drawable_size(dpy, b->ws.drawable, width, height);
    pipe_mutex_unlock(xmdpy->mutex);