mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-16 00:19:55 +00:00
check drawable is available
This commit is contained in:
parent
7fb521e80d
commit
ade104ce5a
1 changed files with 6 additions and 3 deletions
|
|
@ -69,10 +69,13 @@ xglComposite (CARD8 op,
|
||||||
|
|
||||||
pPictureScreen = GetPictureScreen (pScreen);
|
pPictureScreen = GetPictureScreen (pScreen);
|
||||||
|
|
||||||
if (!xglSyncBits (pSrc->pDrawable, NullBox))
|
if (pSrc->pDrawable)
|
||||||
FatalError (XGL_SW_FAILURE_STRING);
|
{
|
||||||
|
if (!xglSyncBits (pSrc->pDrawable, NullBox))
|
||||||
|
FatalError (XGL_SW_FAILURE_STRING);
|
||||||
|
}
|
||||||
|
|
||||||
if (pMask)
|
if (pMask && pMask->pDrawable)
|
||||||
{
|
{
|
||||||
if (!xglSyncBits (pMask->pDrawable, NullBox))
|
if (!xglSyncBits (pMask->pDrawable, NullBox))
|
||||||
FatalError (XGL_SW_FAILURE_STRING);
|
FatalError (XGL_SW_FAILURE_STRING);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue