From c88a3145d057ab72466a3ea8b789bf419e4efc33 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 23 Dec 2005 01:49:21 +0000 Subject: [PATCH] from davidr's tree if source picture defined return --- hw/xgl/xglcomp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/xgl/xglcomp.c b/hw/xgl/xglcomp.c index 3d153f34c..a84efa4b6 100644 --- a/hw/xgl/xglcomp.c +++ b/hw/xgl/xglcomp.c @@ -78,6 +78,9 @@ xglComp (CARD8 op, if (op >= NUM_XGL_OPERATORS) return FALSE; + if (pSrc->pSourcePict) + return FALSE; + if (pSrc->pDrawable->type != DRAWABLE_PIXMAP) return FALSE; @@ -86,6 +89,8 @@ xglComp (CARD8 op, if (pMask) { + if (pMask->pSourcePict) + return FALSE; if (pMask->pDrawable->type != DRAWABLE_PIXMAP) return FALSE;