Do not mask writes to remapped variables in all cases.

If they don't have a static expression we should still write to it.
This commit is contained in:
Hans-Kristian Arntzen 2020-05-28 11:49:28 +02:00
parent 61cddd6307
commit d31bc0247e

View File

@ -8697,7 +8697,7 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction)
var->static_expression = ops[1];
else if (var && var->loop_variable && !var->loop_variable_enable)
var->static_expression = ops[1];
else if (var && var->remapped_variable)
else if (var && var->remapped_variable && var->static_expression)
{
// Skip the write.
}