From 3ef533e858004e4e991da50615625d5778bfff9f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 30 May 2022 08:51:48 -0700 Subject: [PATCH] background: respect alpha in background images --- wezterm-gui/src/glyph-frag.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-gui/src/glyph-frag.glsl b/wezterm-gui/src/glyph-frag.glsl index c0f281c6d..0da3208eb 100644 --- a/wezterm-gui/src/glyph-frag.glsl +++ b/wezterm-gui/src/glyph-frag.glsl @@ -86,7 +86,7 @@ void main() { if (subpixel_aa) { colorMask = o_fg_color.aaaa; } else { - color.a = o_fg_color.a; + color.a *= o_fg_color.a; } } else if (o_has_color == 1.0) { // the texture is full color info (eg: color emoji glyph)