render/gles2: check shaders once

We'd always check shaders each time we were building, even if the
shaders didn't change. This is caused by the check not producing
any file, so ninja can't check whether the output file is up-to-date.

Fix this by capturing the output and write to a file.

TODO: error messages are no longer visible.
This commit is contained in:
Simon Ser 2025-01-27 18:09:34 +01:00
parent c1eb053f5e
commit 67fa22a8b5

View file

@ -14,6 +14,7 @@ foreach name : shaders
input: name, input: name,
output: name + '_check', output: name + '_check',
command: [glslang, '@INPUT@'], command: [glslang, '@INPUT@'],
capture: true,
build_by_default: true, build_by_default: true,
) )