exa: Use PictureMatchFormat for source-only picture format description
Their pFormat member is NULL, which resulted in a crash in
miRenderColorToPixel.
Fixes: 8171d4c2d6
"render: Store and use all 16bpc of precision for
solid pixels (v2.1)"
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
4d5950ce14
commit
3ebef6ab85
|
@ -291,7 +291,8 @@ exaTryDriverSolidFill(PicturePtr pSrc,
|
||||||
pixel = exaGetPixmapFirstPixel(pSrcPix);
|
pixel = exaGetPixmapFirstPixel(pSrcPix);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
miRenderColorToPixel(pSrc->pFormat,
|
miRenderColorToPixel(PictureMatchFormat(pDst->pDrawable->pScreen, 32,
|
||||||
|
pSrc->format),
|
||||||
&pSrc->pSourcePict->solidFill.fullcolor,
|
&pSrc->pSourcePict->solidFill.fullcolor,
|
||||||
&pixel);
|
&pixel);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue