mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 04:38:04 +02:00
Remove the unbounded recording surface assertion
There was an assertion in `_cairo_recording_surface_acquire_source_image` to ensure the surface isn't unbounded. However, this assertion was failing for `record-paint` test on Windows. Removed the assertion and return `CAIRO_INT_STATUS_UNSUPPORTED` if the surface is unbounded. Fixes cairo/cairo#619
This commit is contained in:
parent
c76a699f6c
commit
7eff124d09
1 changed files with 2 additions and 1 deletions
|
|
@ -615,7 +615,8 @@ _cairo_recording_surface_acquire_source_image (void *abstract_surface,
|
|||
return CAIRO_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
assert (! surface->unbounded);
|
||||
if (surface->unbounded)
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
image = _cairo_image_surface_create_with_content (surface->base.content,
|
||||
surface->extents.width,
|
||||
surface->extents.height);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue