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:
Fujii Hironori 2023-01-10 13:15:31 +09:00
parent c76a699f6c
commit 7eff124d09

View file

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