From ce8af73745182f40387b356e16afc64a5c8471ef Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Fri, 17 Feb 2023 14:17:56 +0800 Subject: [PATCH] glsl-effect: Don't overwrite the framebuffer's alpha/X channel It's a waste of effort and will also taint screenshots if they accidentally store that channel as alpha. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6389 Part-of: --- src/shell-glsl-effect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell-glsl-effect.c b/src/shell-glsl-effect.c index 3051e0af9..6eb6e4278 100644 --- a/src/shell-glsl-effect.c +++ b/src/shell-glsl-effect.c @@ -119,7 +119,7 @@ shell_glsl_effect_constructed (GObject *object) if (G_UNLIKELY (klass->base_pipeline == NULL)) { klass->base_pipeline = cogl_pipeline_new (ctx); - cogl_pipeline_set_blend (klass->base_pipeline, "RGBA = ADD (SRC_COLOR * (SRC_COLOR[A]), DST_COLOR * (1-SRC_COLOR[A]))", NULL); + cogl_pipeline_set_blend (klass->base_pipeline, "RGB = ADD (SRC_COLOR * (SRC_COLOR[A]), DST_COLOR * (1-SRC_COLOR[A]))", NULL); if (klass->build_pipeline != NULL) klass->build_pipeline (self);