mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
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:
committed by
Michel Dänzer
parent
4d5950ce14
commit
3ebef6ab85
@@ -291,7 +291,8 @@ exaTryDriverSolidFill(PicturePtr pSrc,
|
||||
pixel = exaGetPixmapFirstPixel(pSrcPix);
|
||||
}
|
||||
else
|
||||
miRenderColorToPixel(pSrc->pFormat,
|
||||
miRenderColorToPixel(PictureMatchFormat(pDst->pDrawable->pScreen, 32,
|
||||
pSrc->format),
|
||||
&pSrc->pSourcePict->solidFill.fullcolor,
|
||||
&pixel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user