From 5446aa9ccbbad9aab0bb1fae82f56162f3c463bd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 24 Jun 2023 09:37:17 +0530 Subject: [PATCH] background color should always be set in vertex shader --- kitty/cell_vertex.glsl | 3 --- 1 file changed, 3 deletions(-) diff --git a/kitty/cell_vertex.glsl b/kitty/cell_vertex.glsl index 5ea8fa3a9..473d23adb 100644 --- a/kitty/cell_vertex.glsl +++ b/kitty/cell_vertex.glsl @@ -198,7 +198,6 @@ void main() { draw_bg = 1; #if (PHASE == PHASE_BACKGROUND) - background = bg; // draw_bg_bitfield has bit 0 set to draw default bg cells and bit 1 set to draw non-default bg cells uint draw_bg_mask = uint(2 * cell_has_non_default_bg + (1 - cell_has_non_default_bg)); draw_bg = step(1, float(draw_bg_bitfield & draw_bg_mask)); @@ -221,14 +220,12 @@ void main() { #endif #endif -#if (PHASE == PHASE_SPECIAL) || (PHASE == PHASE_BOTH) // Selection and cursor 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); background = choose_color(cell_data.has_block_cursor, color_to_vec(cursor_bg), bg); #if !defined(TRANSPARENT) && (PHASE == PHASE_SPECIAL) float is_special_cell = cell_data.has_block_cursor + float(is_selected & ONE); bg_alpha = step(0.5, is_special_cell); -#endif #endif // }}}