Skip to content

Commit 41a0e60

Browse files
committed
Make bg_alpha always available
1 parent 4ac5b8f commit 41a0e60

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

kitty/cell_defines.glsl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,3 @@
2929
#if (HAS_TRANSPARENCY == 1)
3030
#define TRANSPARENT
3131
#endif
32-
33-
#if defined(TRANSPARENT) || (PHASE == PHASE_SPECIAL)
34-
#define NEEDS_BG_ALPHA
35-
#endif

kitty/cell_fragment.glsl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
in vec3 background;
66
in float draw_bg;
7-
#ifdef NEEDS_BG_ALPHA
87
in float bg_alpha;
9-
#endif
108

119
#ifdef NEEDS_FOREGROUND
1210
uniform sampler2DArray sprites;

kitty/cell_vertex.glsl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const uvec2 cell_pos_map[] = uvec2[4](
3636

3737
out vec3 background;
3838
out float draw_bg;
39-
#ifdef NEEDS_BG_ALPHA
4039
out float bg_alpha;
41-
#endif
4240

4341
#ifdef NEEDS_FOREGROUND
4442
uniform float inactive_text_alpha;
@@ -206,6 +204,7 @@ void main() {
206204
draw_bg = step(1, float(draw_bg_bitfield & draw_bg_mask));
207205
#endif
208206

207+
bg_alpha = 1.f;
209208
#ifdef TRANSPARENT
210209
// Set bg_alpha to background_opacity on cells that have the default background color
211210
// Which means they must not have a block cursor or a selection or reverse video

0 commit comments

Comments
 (0)