From 91d39eba6c71cab34ad3322b3dd158856723e751 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 Jul 2026 15:42:38 +0530 Subject: [PATCH] fix graphics rendering because of inverted specialisation --- kitty/shaders/graphics.slang | 2 +- kitty/shaders/slang.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/shaders/graphics.slang b/kitty/shaders/graphics.slang index cc088de02..309cfff3e 100644 --- a/kitty/shaders/graphics.slang +++ b/kitty/shaders/graphics.slang @@ -7,7 +7,7 @@ import alpha_blend; import utils; extern static const bool is_alpha_mask = false; -extern static const bool texture_is_not_premultiplied = false; +extern static const bool texture_is_not_premultiplied = true; struct VSOutput diff --git a/kitty/shaders/slang.py b/kitty/shaders/slang.py index 2669549ee..8e5aae2ec 100644 --- a/kitty/shaders/slang.py +++ b/kitty/shaders/slang.py @@ -279,7 +279,7 @@ class SlangFile(NamedTuple): case 'graphics.slang': yield s() yield s('alpha_mask', is_alpha_mask='true') - yield s('premult', texture_is_not_premultiplied='true') + yield s('premult', texture_is_not_premultiplied='false') case 'cell.slang': d = cell_variant() seen = set()