Add force no external validation path to HLSL as well.

This commit is contained in:
Hans-Kristian Arntzen 2017-02-05 11:23:09 +01:00
parent 70743b9be4
commit bd7c47a071

View File

@ -97,7 +97,7 @@ def cross_compile_msl(shader):
def validate_shader_hlsl(shader):
subprocess.check_call(['glslangValidator', '-e', 'main', '-D', '-V', shader])
if os.path.exists('fxc'):
if (not force_no_external_validation) and os.path.exists('fxc'):
subprocess.check_call(['fxc', shader])
def cross_compile_hlsl(shader):