From fd34f420ec3ba02eb39f22f6551705ab23ebfc28 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 13 Jan 2013 18:16:17 +0000 Subject: [PATCH] compositor: Pass back the internal failure In order to pass back a CAIRO_INT_STATUS_UNSUPPORTED, we need to use the internal error surface creation functions as they do not assert on private error codes. Signed-off-by: Chris Wilson --- src/cairo-mask-compositor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo-mask-compositor.c b/src/cairo-mask-compositor.c index 0b36bea62..d0be1449d 100644 --- a/src/cairo-mask-compositor.c +++ b/src/cairo-mask-compositor.c @@ -172,7 +172,7 @@ create_composite_mask (const cairo_mask_compositor_t *compositor, status = compositor->acquire (surface); if (unlikely (status)) { cairo_surface_destroy (surface); - return _cairo_surface_create_in_error (status); + return _cairo_int_surface_create_in_error (status); } if (!surface->is_clear) { @@ -239,7 +239,7 @@ error: compositor->release (surface); if (status != CAIRO_INT_STATUS_NOTHING_TO_DO) { cairo_surface_destroy (surface); - surface = _cairo_surface_create_in_error (status); + surface = _cairo_int_surface_create_in_error (status); } return surface; }