From 7eff124d09821cf372cb521934321cebc045c182 Mon Sep 17 00:00:00 2001 From: Fujii Hironori Date: Tue, 10 Jan 2023 13:15:31 +0900 Subject: [PATCH] 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 --- src/cairo-recording-surface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cairo-recording-surface.c b/src/cairo-recording-surface.c index 1df0998e0..f8bac4b2e 100644 --- a/src/cairo-recording-surface.c +++ b/src/cairo-recording-surface.c @@ -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);