sna: Perform an explicit check against the region extents
RegionNotEmpty() is only valid if we only use the Region API, and as we mix direct operations on the region extents, we need to also do our own final check. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
de472d95af
commit
e386ba86ea
|
|
@ -5582,7 +5582,7 @@ sna_do_copy(DrawablePtr src, DrawablePtr dst, GCPtr gc,
|
|||
region.extents.x2, region.extents.y2,
|
||||
(long)RegionNumRects(®ion)));
|
||||
|
||||
if (RegionNotEmpty(®ion))
|
||||
if (!box_empty(®ion.extents))
|
||||
copy(src, dst, gc, ®ion, sx-dx, sy-dy, bitPlane, closure);
|
||||
RegionUninit(®ion);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue