Graphics/MaterialPass: Fix shader option index
This commit is contained in:
@@ -142,7 +142,8 @@ namespace Nz
|
|||||||
if (!option.optionIndexByShader[shaderIndex].has_value())
|
if (!option.optionIndexByShader[shaderIndex].has_value())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
m_pipelineInfo.shaders[shaderIndex].optionValues[optionIndex] = m_optionValues[optionIndex];
|
std::size_t shaderOptionIndex = *option.optionIndexByShader[shaderIndex];
|
||||||
|
m_pipelineInfo.shaders[shaderIndex].optionValues[shaderOptionIndex] = m_optionValues[optionIndex];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user