diff --git a/DirectXTex/Shaders/CompileShaders.cmd b/DirectXTex/Shaders/CompileShaders.cmd index d28cef9..6d953bb 100644 --- a/DirectXTex/Shaders/CompileShaders.cmd +++ b/DirectXTex/Shaders/CompileShaders.cmd @@ -37,10 +37,11 @@ if %error% == 0 ( echo Shaders compiled ok ) else ( echo There were shader compilation errors! + exit /b 1 ) endlocal -exit /b +exit /b 0 :CompileShader set fxc=%PCFXC% %1.hlsl %FXCOPTS% /Tcs_4_0 /E%2 "/Fh%CompileShadersOutput%\%1_%2.inc" "/Fd%CompileShadersOutput%\%1_%2.pdb" /Vn%1_%2