summaryrefslogtreecommitdiff
path: root/src/sna/sna_accel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r--src/sna/sna_accel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index b5e6730f..62bf1d46 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2855,7 +2855,8 @@ use_cpu_bo:
sna_damage_destroy(&priv->gpu_damage);
*damage = NULL;
} else {
- if (sna_damage_contains_box__no_reduce(priv->cpu_damage,
+ if (priv->cpu_damage &&
+ sna_damage_contains_box__no_reduce(priv->cpu_damage,
&region.extents))
*damage = NULL;
else