Skip to content

Commit 5446aa9

Browse files
committed
background color should always be set in vertex shader
1 parent 99012d2 commit 5446aa9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kitty/cell_vertex.glsl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ void main() {
198198
draw_bg = 1;
199199

200200
#if (PHASE == PHASE_BACKGROUND)
201-
background = bg;
202201
// draw_bg_bitfield has bit 0 set to draw default bg cells and bit 1 set to draw non-default bg cells
203202
uint draw_bg_mask = uint(2 * cell_has_non_default_bg + (1 - cell_has_non_default_bg));
204203
draw_bg = step(1, float(draw_bg_bitfield & draw_bg_mask));
@@ -221,14 +220,12 @@ void main() {
221220
#endif
222221
#endif
223222

224-
#if (PHASE == PHASE_SPECIAL) || (PHASE == PHASE_BOTH)
225223
// Selection and cursor
226224
bg = choose_color(float(is_selected & ONE), choose_color(use_cell_for_selection_bg, color_to_vec(fg_as_uint), color_to_vec(highlight_bg)), bg);
227225
background = choose_color(cell_data.has_block_cursor, color_to_vec(cursor_bg), bg);
228226
#if !defined(TRANSPARENT) && (PHASE == PHASE_SPECIAL)
229227
float is_special_cell = cell_data.has_block_cursor + float(is_selected & ONE);
230228
bg_alpha = step(0.5, is_special_cell);
231-
#endif
232229
#endif
233230

234231
// }}}

0 commit comments

Comments
 (0)