mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 21:58:04 +02:00
surface: Relax assertion about not rendering to a snapshot
Recently I began using the surface->snapshot_of member of a subsurface to cache a target representation of the current subsurface. More recently, I discovered this caused an assertion failure in epiphany, and probably other GTK3 based programs. Throwaway the assertion and trust that the programmer doesn't make any mistakes... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
04108ce492
commit
1952fec829
1 changed files with 3 additions and 1 deletions
|
|
@ -387,9 +387,11 @@ _cairo_surface_begin_modification (cairo_surface_t *surface)
|
|||
{
|
||||
assert (surface->status == CAIRO_STATUS_SUCCESS);
|
||||
assert (! surface->finished);
|
||||
assert (surface->snapshot_of == NULL);
|
||||
|
||||
_cairo_surface_detach_snapshots (surface);
|
||||
if (surface->snapshot_of != NULL)
|
||||
_cairo_surface_detach_snapshot (surface);
|
||||
|
||||
_cairo_surface_detach_mime_data (surface);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue