diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-24 11:45:27 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-24 11:45:27 +0000 |
commit | b86e4f59299f935d5a0ea8375da97e6fc57571f9 (patch) | |
tree | 583708796af0ba2222ce439d59c91b942f68f692 | |
parent | 3bcc9f08e1309725c18dfa5ca0e905bb88ebf4ea (diff) |
sna: Check that the copy dst is attached before replacing damage
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 859530f7..a8723d10 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -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 */ |