Graphics/UberShader: Fix stage type check
This commit is contained in:
parent
c85263c9e7
commit
83772ab035
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue