glsl2: Use a better talloc context for ir_expression_flattening.

The instruction can be hung off of any other in the tree, even if the
other one will be deleted, since it'll get stolen to the shader's
context later if it's still live.
This commit is contained in:
Eric Anholt
2010-07-12 15:41:31 -07:00
parent 7b96b474e0
commit d74c9ff046

View File

@@ -82,7 +82,7 @@ do_expression_flattening(exec_list *instructions,
ir_rvalue *
ir_expression_flattening_visitor::operand_to_temp(ir_rvalue *ir)
{
void *ctx = talloc_parent(base_ir);
void *ctx = base_ir;
ir_variable *var;
ir_assignment *assign;