Merge branch 'xwayland-hack-to-fix-regression-with-aplha-blending' into 'master'

glamor: Do not override src alpha only on X11 drawables

Closes #1655

See merge request xorg/xserver!1436
This commit is contained in:
Olivier Fourdan 2025-12-09 02:32:56 +01:00
commit 56f0c586e1

View file

@ -1256,6 +1256,7 @@ glamor_composite_with_shader(CARD8 op,
if (ca_state != CA_TWO_PASS &&
key.dest_swizzle == SHADER_DEST_SWIZZLE_DEFAULT &&
dest_pixmap->drawable.depth == 32 &&
dest_pixmap->drawable.id != 0 &&
glamor_drawable_effective_depth(dest->pDrawable) == 24) {
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_FALSE);
restore_colormask = TRUE;