Try to fix GCC error

This commit is contained in:
Jérôme Leclercq
2022-03-15 08:57:16 +01:00
parent c496944b37
commit 9b1d8b5fcf
4 changed files with 4 additions and 4 deletions

View File

@@ -605,7 +605,7 @@ namespace Nz
template<typename T>
void LangWriter::AppendIdentifier(const T& map, std::size_t id)
{
const auto& structIdentifier = Retrieve(map, id);
const auto& structIdentifier = RetrieveConst(map, id);
if (structIdentifier.moduleIndex != m_currentState->currentModuleIndex)
Append(m_currentState->moduleNames[structIdentifier.moduleIndex], '.');

View File

@@ -31,7 +31,7 @@ namespace Nz
auto SpirvAstVisitor::GetVariable(std::size_t varIndex) const -> const Variable&
{
return Retrieve(m_variables, varIndex);
return RetrieveConst(m_variables, varIndex);
}
void SpirvAstVisitor::Visit(ShaderAst::AccessIndexExpression& node)