summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-06-14 20:25:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-14 20:25:21 +0100
commit49543522e789a0a8213c164b37a18c0642e60ac4 (patch)
tree4774cfb7d2ca0c492a9aa560f331828e547145f0 /src
parent4e50467b4f50b522a07bedae7ff68b9c37362af8 (diff)
sna: Fix reversed assertion
Darn the double negative! After adding damage we want to assert that the region is not empty, not !not empty. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_damage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_damage.c b/src/sna/sna_damage.c
index bdd6a5e8..1957177b 100644
--- a/src/sna/sna_damage.c
+++ b/src/sna/sna_damage.c
@@ -503,7 +503,7 @@ static void __sna_damage_reduce(struct sna_damage *damage)
pixman_region_fini(region);
pixman_region_init_rects(region, boxes, nboxes);
- assert(!pixman_region_not_empty(region));
+ assert(pixman_region_not_empty(region));
assert(damage->extents.x1 == region->extents.x1 &&
damage->extents.y1 == region->extents.y1 &&
damage->extents.x2 == region->extents.x2 &&