diff --git a/sources/Renderer/Direct3D12/Shader/D3D12Shader.cpp b/sources/Renderer/Direct3D12/Shader/D3D12Shader.cpp index e86c4f6862..f92f94098c 100644 --- a/sources/Renderer/Direct3D12/Shader/D3D12Shader.cpp +++ b/sources/Renderer/Direct3D12/Shader/D3D12Shader.cpp @@ -652,6 +652,9 @@ HRESULT D3D12Shader::ReflectShaderByteCode(ShaderReflection& reflection) const if (FAILED(hr)) return hr; } + #else + if (FAILED(hr)) + return hr; #endif // /LLGL_D3D12_ENABLE_DXCOMPILER D3D12_SHADER_DESC shaderDesc;