Graphics/UberShader: Fix stage type check
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user