glamor: Source pictures are always depth 32
We were using the destination pixmap depth to determine the source picture format. Fixes incorrect text rendering with some MATE desktop GTK3 themes. Reviewed-by: Adam Jackson <ajax@redhat.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94246 Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
b05ae79ee3
commit
a3e681eafa
|
@ -508,9 +508,9 @@ use_source_solid(CARD8 op, PicturePtr src, PicturePtr dst, glamor_program *prog)
|
||||||
|
|
||||||
glamor_set_blend(op, prog->alpha, dst);
|
glamor_set_blend(op, prog->alpha, dst);
|
||||||
|
|
||||||
glamor_set_color(glamor_get_drawable_pixmap(dst->pDrawable),
|
glamor_set_color_depth(dst->pDrawable->pScreen, 32,
|
||||||
src->pSourcePict->solidFill.color,
|
src->pSourcePict->solidFill.color,
|
||||||
prog->fg_uniform);
|
prog->fg_uniform);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue