Fix compilation

This commit is contained in:
SirLynix 2022-06-16 18:19:19 +02:00
parent 8e8bee7037
commit 2cc4944f58
1 changed files with 3 additions and 1 deletions

View File

@ -74,9 +74,11 @@ namespace Nz
// TODO: Remove this when arrays are accepted as config values
for (const auto& [optionHash, optionValue] : config.optionValues)
{
std::uint32_t hash = optionHash;
std::visit([&](auto&& arg)
{
states.optionValues[optionHash] = arg;
states.optionValues[hash] = arg;
}, optionValue);
}
states.shaderModuleResolver = Graphics::Instance()->GetShaderModuleResolver();