Graphics/MaterialPass: Fix option values in release

This commit is contained in:
SirLynix 2022-04-19 19:16:03 +02:00
parent e5f552ef47
commit 5a7bd44744
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ namespace Nz
}
// make option values consistent (required for hash/equality)
std::sort(m_pipelineInfo.optionValues.begin(), m_pipelineInfo.optionValues.end(), [](const auto& lhs, const auto& rhs) { return lhs.hash < rhs.hash; });
std::sort(m_pipelineInfo.optionValues.begin(), m_pipelineInfo.optionValues.begin() + m_pipelineInfo.optionCount, [](const auto& lhs, const auto& rhs) { return lhs.hash < rhs.hash; });
m_pipeline = MaterialPipeline::Get(m_pipelineInfo);
m_pipelineUpdated = true;