summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-07-12 15:41:31 -0700
committerEric Anholt <eric@anholt.net>2010-07-12 16:07:02 -0700
commitd74c9ff046c9cf8ee33c202eb5eba3dfc7f8e06e (patch)
tree906cd88a4948883c509a18b982c6a3c9672b5487
parent7b96b474e06f83bf4abec42b3a9cb2dee0ea1b68 (diff)
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.
-rw-r--r--src/glsl/ir_expression_flattening.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_expression_flattening.cpp b/src/glsl/ir_expression_flattening.cpp
index 0f10b67193..629194c1a0 100644
--- a/src/glsl/ir_expression_flattening.cpp
+++ b/src/glsl/ir_expression_flattening.cpp
@@ -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;