From 16e4459fae0df2af6a937fc0f8cf73a755807b48 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 1 Jul 2026 15:56:54 +0530 Subject: [PATCH] Handle fixup of flat location specifiers --- kitty/shaders/slang.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty/shaders/slang.py b/kitty/shaders/slang.py index 4a41db0d5..ce3c71f32 100644 --- a/kitty/shaders/slang.py +++ b/kitty/shaders/slang.py @@ -377,6 +377,8 @@ def fixup_opengl_code(glsl_code: str) -> tuple[str, dict[str, Any]]: line = '// ' + line elif line.startswith('layout(location =') or line.startswith('layout(binding ='): line = '// ' + line + elif line.startswith('flat layout(location ='): + line = 'flat' elif line: # )))) words = line.split() if 'uniform' in words and line.startswith('layout('): # )