diff options
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index c021652a..80d67873 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -6120,7 +6120,9 @@ sna_copy_boxes(DrawablePtr src, DrawablePtr dst, GCPtr gc, goto fallback; } - if (src_priv && COW(src_priv->cow) == COW(dst_priv->cow) && alu == GXcopy) { + if (alu == GXcopy && + src_priv && src_priv->cow && + COW(src_priv->cow) == COW(dst_priv->cow)) { if ((dx | dy) == 0) { DBG(("%s: ignoring cow for no op\n", __FUNCTION__)); |