Graphics/UberShader: Fix stage type check

This commit is contained in:
Jérôme Leclercq 2021-11-14 19:52:52 +01:00
parent c85263c9e7
commit 83772ab035
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ namespace Nz
ShaderAst::AstReflect reflect;
reflect.Reflect(*m_shaderAst, callbacks);
if (m_shaderStages & supportedStageType != m_shaderStages)
if ((m_shaderStages & supportedStageType) != m_shaderStages)
throw std::runtime_error("shader doesn't support all required shader stages");
if (optionCount >= MaximumOptionValue)