Fix compilation
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user