diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-29 03:01:31 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-29 03:03:42 +0000 |
commit | c006b886d28a772d7a62cec52ab7e0c8196c36f6 (patch) | |
tree | 061402d57ca19f3e113be151106620fa867f4724 | |
parent | fd59e6d86a3a1fc6720316f20deb8a0bd6f7b767 (diff) |
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>
-rw-r--r-- | src/cairo-xlib-surface-shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c index 43cecdf1..32c70330 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 * |