From b3448c3dff79d0eda2a921178c26eb87f1ba34ea Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 18 Aug 2012 09:28:17 +0100 Subject: [PATCH] xlib: Drop the false optimisation of using a potentially busy shm upload pixmap Signed-off-by: Chris Wilson --- src/cairo-xlib-render-compositor.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cairo-xlib-render-compositor.c b/src/cairo-xlib-render-compositor.c index 8baeaf323..e32538285 100644 --- a/src/cairo-xlib-render-compositor.c +++ b/src/cairo-xlib-render-compositor.c @@ -249,8 +249,6 @@ draw_image_boxes (void *_dst, shm = NULL; if (boxes_cover_surface (boxes, dst)) shm = (cairo_image_surface_t *) _cairo_xlib_surface_get_shm (dst, TRUE); - if (shm == NULL && dst->shm) - shm = (cairo_image_surface_t *) _cairo_xlib_surface_get_shm (dst, FALSE); if (shm) { for (chunk = &boxes->chunks; chunk; chunk = chunk->next) { for (i = 0; i < chunk->count; i++) {