X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglsl%2Flower_discard.cpp;h=cafd2dd3b44defdeb46a5c75b97f6db0473b147a;hb=c150e876b4bd8af1a0f0d7d8a76e9900045ac6be;hp=b95313df8c817e943a77081a80b9af783889ad63;hpb=652901e95b4ed406293d0e1fabee857c054119b1;p=mesa.git 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",