mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-22 03:00:29 +01:00
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 <chris@chris-wilson.co.uk>
This commit is contained in:
parent
14c32ee1cf
commit
fd34f420ec
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue