diff options
author | Daniel van Vugt <daniel.van.vugt@canonical.com> | 2023-02-17 14:17:56 +0800 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2023-04-26 13:42:34 +0000 |
commit | ce8af73745182f40387b356e16afc64a5c8471ef (patch) | |
tree | 446cf9ccd81c128b82f4b6807f1eadb07d8050b2 | |
parent | d67077bdf1492e62477def685f8cc293009fdedb (diff) | |
download | gnome-shell-ce8af73745182f40387b356e16afc64a5c8471ef.tar.gz |
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2650>
-rw-r--r-- | src/shell-glsl-effect.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |