mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 08:10:03 +01: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:
parent
4d5950ce14
commit
3ebef6ab85
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue