mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 20:40:04 +01: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);
|
||||
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue