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:
Chris Wilson 2012-10-31 13:15:07 +00:00
parent d7f5a1bec4
commit 9b7ed9b2cd

View file

@ -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;
}