check drawable is available

This commit is contained in:
Dave Airlie 2005-12-23 01:51:40 +00:00
parent 7fb521e80d
commit ade104ce5a

View File

@ -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);