diff options
-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 b886e8db..0676a6d6 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1793,7 +1793,7 @@ sna_pixmap_make_cow(struct sna *sna, sna_pixmap_unmap(dst_priv->pixmap, dst_priv); kgem_bo_destroy(&sna->kgem, dst_priv->gpu_bo); } - assert(!priv->mapped); + assert(!dst_priv->mapped); dst_priv->gpu_bo = kgem_bo_reference(cow->bo); dst_priv->cow = cow; list_add(&dst_priv->cow_list, &cow->list); |