Dont output line mapping when compiling custom shaders to glsl

This commit is contained in:
Kovid Goyal 2026-08-11 10:39:59 +05:30
parent edc132c98b
commit 9aa73ccaa5
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

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