Fix remap_parameter.

Need to return after backing variable resolve.
This commit is contained in:
Hans-Kristian Arntzen 2016-09-10 22:21:57 +02:00
parent dd1513b814
commit 901b45e09a

View File

@ -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))