Fix remap_parameter.
Need to return after backing variable resolve.
This commit is contained in:
parent
dd1513b814
commit
901b45e09a
@ -2324,13 +2324,13 @@ void Compiler::CombinedImageSamplerHandler::pop_remap_parameters()
|
||||
|
||||
uint32_t Compiler::CombinedImageSamplerHandler::remap_parameter(uint32_t id)
|
||||
{
|
||||
if (parameter_remapping.empty())
|
||||
return id;
|
||||
|
||||
auto *var = compiler.maybe_get_backing_variable(id);
|
||||
if (var)
|
||||
id = var->self;
|
||||
|
||||
if (parameter_remapping.empty())
|
||||
return id;
|
||||
|
||||
auto &remapping = parameter_remapping.top();
|
||||
auto itr = remapping.find(id);
|
||||
if (itr != end(remapping))
|
||||
|
Loading…
Reference in New Issue
Block a user