sna: Check that the copy dst is attached before replacing damage
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
3bcc9f08e1
commit
b86e4f5929
|
|
@ -2396,7 +2396,7 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc,
|
|||
src_priv ? src_priv->cpu_bo : NULL,
|
||||
replaces));
|
||||
|
||||
if (replaces)
|
||||
if (dst_priv && replaces)
|
||||
sna_damage_destroy(&dst_priv->cpu_damage);
|
||||
|
||||
/* Try to maintain the data on the GPU */
|
||||
|
|
|
|||
Loading…
Reference in New Issue