mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 08:47:47 +02:00
Micro-optimization
This commit is contained in:
@@ -201,8 +201,7 @@ void main() {
|
|||||||
|
|
||||||
// Background {{{
|
// Background {{{
|
||||||
#ifdef NEEDS_BACKROUND
|
#ifdef NEEDS_BACKROUND
|
||||||
float cell_has_default_bg = 1 - step(ONE, colors[bg_index] & BYTE_MASK);
|
float cell_has_non_default_bg = step(ONE, colors[bg_index] & BYTE_MASK);
|
||||||
float cell_has_non_default_bg = 1 - cell_has_default_bg;
|
|
||||||
|
|
||||||
#if defined(BACKGROUND)
|
#if defined(BACKGROUND)
|
||||||
background = bg;
|
background = bg;
|
||||||
|
|||||||
Reference in New Issue
Block a user