Fix MSL reference to instruction stream modified in subclass update.

This commit is contained in:
Bill Hollings 2016-04-11 14:16:12 -04:00
parent 6236cc79f0
commit 257b10eef4

View File

@ -529,7 +529,7 @@ void CompilerMSL::emit_function_prototype(SPIRFunction &func, bool is_decl)
// Emit a texture operation
void CompilerMSL::emit_texture_op(const Instruction &i)
{
auto ops = stream(i.offset);
auto ops = stream(i);
auto op = static_cast<Op>(i.op);
uint32_t length = i.length;