mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-02 19:00:35 +01:00
xlib/shm: Fix bogus assertion without shm available
In particular note that _cairo_xlib_surface_put_shm is indeed called and is expected to be a no-op when shm is not available. Reported-by: Thomas Klausner <wiz@NetBSD.org> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
d7f5a1bec4
commit
9b7ed9b2cd
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ _cairo_xlib_surface_get_shm (cairo_xlib_surface_t *surface,
|
|||
cairo_int_status_t
|
||||
_cairo_xlib_surface_put_shm (cairo_xlib_surface_t *surface)
|
||||
{
|
||||
ASSERT_NOT_REACHED;
|
||||
assert (!surface->fallback);
|
||||
return CAIRO_INT_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue