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:
Chris Wilson 2011-12-24 11:45:27 +00:00
parent 3bcc9f08e1
commit b86e4f5929
1 changed files with 1 additions and 1 deletions

View File

@ -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 */