mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 12:00:22 +01:00
record: We can only skip the clear so long as we know the destination is clear
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
d7abdab931
commit
65e13cd201
1 changed files with 1 additions and 1 deletions
|
|
@ -1239,7 +1239,7 @@ _cairo_recording_surface_replay_internal (cairo_recording_surface_t *surface,
|
|||
if (unlikely (surface->base.finished))
|
||||
return _cairo_error (CAIRO_STATUS_SURFACE_FINISHED);
|
||||
|
||||
if (surface->base.is_clear)
|
||||
if (surface->base.is_clear && target->is_clear)
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
||||
assert (_cairo_surface_is_recording (&surface->base));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue