[mutter/wip/fmuellner/gtk-shadows: 1/8] shaped-texture: Only mask alpha channel
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/fmuellner/gtk-shadows: 1/8] shaped-texture: Only mask alpha channel
- Date: Fri, 28 Oct 2016 15:13:19 +0000 (UTC)
commit aae007193f974b13102696944414eaa6e5e55c39
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Oct 27 16:21:15 2016 +0200
shaped-texture: Only mask alpha channel
We currently apply the mask texture to any channel, which means
elements drawn outside the actual decorations are blended with
gray. This should hardly matter in practice where shadows can
be expected to be some shade of gray, but let's still make sure
the odd theme with pink shadows or the like works correctly by
applying the alpha mask to the alpha channel only.
https://bugzilla.gnome.org/show_bug.cgi?id=744667
src/compositor/meta-shaped-texture.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c
index 5b2630b..76dc1f1 100644
--- a/src/compositor/meta-shaped-texture.c
+++ b/src/compositor/meta-shaped-texture.c
@@ -216,7 +216,8 @@ get_masked_pipeline (CoglContext *ctx)
{
template = cogl_pipeline_copy (get_base_pipeline (ctx));
cogl_pipeline_set_layer_combine (template, 1,
- "RGBA = MODULATE (PREVIOUS, TEXTURE[A])",
+ "RGB = REPLACE (PREVIOUS)"
+ "A = MODULATE (PREVIOUS, TEXTURE)",
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]