Bug #6911: Check return value of exaGetPixelFromRGBA().
This commit is contained in:
parent
930b9a069a
commit
afb84c2fca
|
@ -282,8 +282,12 @@ exaTryDriverSolidFill(PicturePtr pSrc,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
exaGetPixelFromRGBA(&pixel, red, green, blue, alpha,
|
if (!exaGetPixelFromRGBA(&pixel, red, green, blue, alpha,
|
||||||
pDst->format);
|
pDst->format))
|
||||||
|
{
|
||||||
|
REGION_UNINIT(pDst->pDrawable->pScreen, ®ion);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(*pExaScr->info->PrepareSolid) (pDstPix, GXcopy, 0xffffffff, pixel))
|
if (!(*pExaScr->info->PrepareSolid) (pDstPix, GXcopy, 0xffffffff, pixel))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue