From fab57fbdf136a7864befd97ac1df0bded88a8218 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 12 Jan 2020 10:53:27 +0530 Subject: [PATCH] Micro-optimization --- kitty/cell_vertex.glsl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kitty/cell_vertex.glsl b/kitty/cell_vertex.glsl index 11d53c910..443260b5a 100644 --- a/kitty/cell_vertex.glsl +++ b/kitty/cell_vertex.glsl @@ -201,8 +201,7 @@ void main() { // Background {{{ #ifdef NEEDS_BACKROUND - float cell_has_default_bg = 1 - step(ONE, colors[bg_index] & BYTE_MASK); - float cell_has_non_default_bg = 1 - cell_has_default_bg; + float cell_has_non_default_bg = step(ONE, colors[bg_index] & BYTE_MASK); #if defined(BACKGROUND) background = bg;