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> (cherry picked from commit3ebef6ab85
)
This commit is contained in:
parent
33f20c38fc
commit
69980e4e5a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue