diff --git a/src/Nazara/Graphics/UberShader.cpp b/src/Nazara/Graphics/UberShader.cpp index c581270a7..3811f21a1 100644 --- a/src/Nazara/Graphics/UberShader.cpp +++ b/src/Nazara/Graphics/UberShader.cpp @@ -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)