From ade104ce5a016623c1ce97b0d52b531185b35baf Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 23 Dec 2005 01:51:40 +0000 Subject: check drawable is available --- hw/xgl/xglpict.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/xgl/xglpict.c b/hw/xgl/xglpict.c index 62004f0c6..96f70c478 100644 --- a/hw/xgl/xglpict.c +++ b/hw/xgl/xglpict.c @@ -69,10 +69,13 @@ xglComposite (CARD8 op, pPictureScreen = GetPictureScreen (pScreen); - if (!xglSyncBits (pSrc->pDrawable, NullBox)) - FatalError (XGL_SW_FAILURE_STRING); + if (pSrc->pDrawable) + { + if (!xglSyncBits (pSrc->pDrawable, NullBox)) + FatalError (XGL_SW_FAILURE_STRING); + } - if (pMask) + if (pMask && pMask->pDrawable) { if (!xglSyncBits (pMask->pDrawable, NullBox)) FatalError (XGL_SW_FAILURE_STRING); -- cgit v1.2.3