fix graphics rendering because of inverted specialisation

This commit is contained in:
Kovid Goyal 2026-07-07 15:42:38 +05:30
parent 9b325d3de0
commit 91d39eba6c
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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()