Fix compilation
This commit is contained in:
parent
8e8bee7037
commit
2cc4944f58
|
|
@ -74,9 +74,11 @@ namespace Nz
|
||||||
// TODO: Remove this when arrays are accepted as config values
|
// TODO: Remove this when arrays are accepted as config values
|
||||||
for (const auto& [optionHash, optionValue] : config.optionValues)
|
for (const auto& [optionHash, optionValue] : config.optionValues)
|
||||||
{
|
{
|
||||||
|
std::uint32_t hash = optionHash;
|
||||||
|
|
||||||
std::visit([&](auto&& arg)
|
std::visit([&](auto&& arg)
|
||||||
{
|
{
|
||||||
states.optionValues[optionHash] = arg;
|
states.optionValues[hash] = arg;
|
||||||
}, optionValue);
|
}, optionValue);
|
||||||
}
|
}
|
||||||
states.shaderModuleResolver = Graphics::Instance()->GetShaderModuleResolver();
|
states.shaderModuleResolver = Graphics::Instance()->GetShaderModuleResolver();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue