From 1c01805b1cb03c6e67c06b605fd5bd956473cb6b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 14 Aug 2025 12:04:32 +0530 Subject: [PATCH] Fix shader conditional compilation with override fg enabled --- kitty/cell_vertex.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/cell_vertex.glsl b/kitty/cell_vertex.glsl index 25a2fb794..07d406b0d 100644 --- a/kitty/cell_vertex.glsl +++ b/kitty/cell_vertex.glsl @@ -190,7 +190,7 @@ float calc_background_opacity(uint bg) { } // Overriding of foreground colors for contrast requirements {{{ -#if DO_FG_OVERRIDE == 1 +#if DO_FG_OVERRIDE == 1 && !defined(ONLY_BACKGROUND) #define OVERRIDE_FG_COLORS #pragma kitty_include_shader #if (FG_OVERRIDE_ALGO == 1)