mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-22 23:20:41 +02:00
xcb: Fallback to image if allocating SHM fails
This turns an !!!ERROR!!! for scale-offset-similar with xcb-fallback into a failed test and might fix other problems. However, since the problem here partly is a race, those other problems might only be hit sometimes. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
2f020c4ade
commit
0da3d3efd2
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ _cairo_xcb_surface_create_similar_image (void *abstract_other,
|
|||
stride * height,
|
||||
&shm_info);
|
||||
if (unlikely (status))
|
||||
return _cairo_surface_create_in_error (status);
|
||||
return cairo_image_surface_create (format, width, height);
|
||||
|
||||
image = _cairo_image_surface_create_with_pixman_format (shm_info->mem,
|
||||
pixman_format,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue