diff options
author | Dave Airlie <airlied@linux.ie> | 2005-12-23 01:51:40 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-12-23 01:51:40 +0000 |
commit | ade104ce5a016623c1ce97b0d52b531185b35baf (patch) | |
tree | 4a7e8ff26f3f9945a825846dbd6300e1ec16fb38 | |
parent | 7fb521e80d6e2c05e9475e74fbf80bfbe74cda95 (diff) |
check drawable is availablepre-xgldrop-merge
-rw-r--r-- | hw/xgl/xglpict.c | 9 |
1 files 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); |