NULL is not a valid argument to CreatePicture, please use serverClient

as the client argument if no real client is creating the object.
This commit is contained in:
Eamon Walsh 2007-10-12 18:18:00 -04:00 committed by Eamon Walsh
parent 6adeba1730
commit 526f40434c
2 changed files with 3 additions and 2 deletions

View File

@ -463,7 +463,8 @@ xglCreateSolidAlphaPicture (ScreenPtr pScreen)
tmpval[0] = xTrue;
pScreenPriv->pSolidAlpha = CreatePicture (0, &pPixmap->drawable, pFormat,
CPRepeat, tmpval, 0, &error);
CPRepeat, tmpval,
serverClient, &error);
(*pScreen->DestroyPixmap) (pPixmap);
if (pScreenPriv->pSolidAlpha)

View File

@ -158,7 +158,7 @@ miCompositeRects (CARD8 op,
tmpval[0] = xTrue;
pSrc = CreatePicture (0, &pPixmap->drawable, rgbaFormat,
CPRepeat, tmpval, 0, &error);
CPRepeat, tmpval, serverClient, &error);
if (!pSrc)
goto bail4;