Skip to content

Commit

Permalink
Fix crash in D3D12Shader::ReflectShaderByteCode when not using DXCOMP…
Browse files Browse the repository at this point in the history
…ILER. (#113)
  • Loading branch information
gdianaty committed May 22, 2024
1 parent 8a78d24 commit b93d773
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/Renderer/Direct3D12/Shader/D3D12Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b93d773

Please sign in to comment.