mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 00:38:06 +02:00
damage: Prevent accumulating damage to an error object
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
50e51389bd
commit
f4631dca37
1 changed files with 3 additions and 0 deletions
|
|
@ -92,6 +92,9 @@ _cairo_damage_add_boxes(cairo_damage_t *damage,
|
|||
|
||||
if (damage == NULL)
|
||||
damage = _cairo_damage_create ();
|
||||
if (damage->status)
|
||||
return damage;
|
||||
|
||||
|
||||
damage->dirty += count;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue