summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-surface-shm.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-29 03:01:31 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-29 03:03:42 +0000
commitc006b886d28a772d7a62cec52ab7e0c8196c36f6 (patch)
tree061402d57ca19f3e113be151106620fa867f4724 /src/cairo-xlib-surface-shm.c
parentfd59e6d86a3a1fc6720316f20deb8a0bd6f7b767 (diff)
downloadcairo-c006b886d28a772d7a62cec52ab7e0c8196c36f6.tar.gz
xlib/shm: Force synchronisation for scratch SHM image buffers
The scratch image buffers are used for uploads to the xserver and so we must be careful not to overwrite active SHM segments. Unfortunately we told the core SHM allocator that we would sync before using the images, which was a lie. Reported-by: Michael Natterer <mitch@gimp.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-xlib-surface-shm.c')
-rw-r--r--src/cairo-xlib-surface-shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c
index 43cecdf17..32c703301 100644
--- a/src/cairo-xlib-surface-shm.c
+++ b/src/cairo-xlib-surface-shm.c
@@ -1155,7 +1155,7 @@ _cairo_xlib_surface_create_shm__image (cairo_xlib_surface_t *surface,
return NULL;
return &_cairo_xlib_shm_surface_create (surface, format, width, height,
- TRUE, 0)->image.base;
+ FALSE, 0)->image.base;
}
cairo_surface_t *