summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/sna_damage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/sna_damage.c b/src/sna/sna_damage.c
index 5a4d67c3..03bb881c 100644
--- a/src/sna/sna_damage.c
+++ b/src/sna/sna_damage.c
@@ -947,6 +947,11 @@ struct sna_damage *_sna_damage_is_all(struct sna_damage *damage,
if (damage->region.data)
return damage;
+ assert(damage->extents.x1 == 0 &&
+ damage->extents.y1 == 0 &&
+ damage->extents.x2 == width &&
+ damage->extents.y2 == height);
+
return _sna_damage_all(damage, width, height);
}