sna: Avoid the NULL damage deref
Fixes x11perf -wdcircle100 -time 1 -repeat 1 -rop GXxor Reported-by: Fryderyk Dziarmagowski <fdziarmagowski@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43084 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
4a86ec5ddb
commit
297f7680cf
|
|
@ -7940,7 +7940,8 @@ sna_push_pixels_solid_blt(GCPtr gc,
|
|||
RegionTranslate(region, dx, dy);
|
||||
|
||||
assert_pixmap_contains_box(pixmap, RegionExtents(region));
|
||||
sna_damage_add(damage, region);
|
||||
if (damage)
|
||||
sna_damage_add(damage, region);
|
||||
|
||||
DBG(("%s: upload(%d, %d, %d, %d)\n", __FUNCTION__,
|
||||
region->extents.x1, region->extents.y1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue