summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_discard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/lower_discard.cpp')
-rw-r--r--src/glsl/lower_discard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/lower_discard.cpp b/src/glsl/lower_discard.cpp
index b95313df8c8..cafd2dd3b44 100644
--- a/src/glsl/lower_discard.cpp
+++ b/src/glsl/lower_discard.cpp
@@ -170,7 +170,7 @@ lower_discard_visitor::visit_leave(ir_if *ir)
if (then_discard == NULL && else_discard == NULL)
return visit_continue;
- void *mem_ctx = talloc_parent(ir);
+ void *mem_ctx = ralloc_parent(ir);
ir_variable *temp = new(mem_ctx) ir_variable(glsl_type::bool_type,
"discard_cond_temp",