From 9aa73ccaa589dede52979d7b188238be8a1a6388 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 11 Aug 2026 10:39:59 +0530 Subject: [PATCH] Dont output line mapping when compiling custom shaders to glsl --- kitty/shaders/slang.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/shaders/slang.py b/kitty/shaders/slang.py index bf5299979..a3c847cc5 100644 --- a/kitty/shaders/slang.py +++ b/kitty/shaders/slang.py @@ -278,6 +278,8 @@ class LoadShaderPrograms: try: pipeline = merge_pipelines(slot_pipelines) vert, frag, metadata = build_custom_shader_pipeline_glsl(pipeline) + # print(vert, file=open('/tmp/sample.vert', 'w')) + # print(frag, file=open('/tmp/sample.frag', 'w')) except Exception as e: log_error(f'Failed to build custom shader for slot {slot} with error: {e}') compile_program(prog, (), (), {}, allow_recompile) @@ -1539,6 +1541,8 @@ def build_custom_shader_pipeline_glsl( + [ '-warnings-as-errors', 'all', + '-line-directive-mode', + 'none', '-lang', 'slang', '-target',