mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
ir_to_mesa: Free the ir_to_mesa temporary storage when we're done.
This commit is contained in:
parent
4a6a431684
commit
abc6d7e0b4
1 changed files with 2 additions and 2 deletions
|
|
@ -2212,10 +2212,12 @@ ir_to_mesa_visitor::ir_to_mesa_visitor()
|
|||
next_signature_id = 1;
|
||||
sampler_map = NULL;
|
||||
current_function = NULL;
|
||||
mem_ctx = talloc_new(NULL);
|
||||
}
|
||||
|
||||
ir_to_mesa_visitor::~ir_to_mesa_visitor()
|
||||
{
|
||||
talloc_free(mem_ctx);
|
||||
if (this->sampler_map)
|
||||
hash_table_dtor(this->sampler_map);
|
||||
}
|
||||
|
|
@ -2445,8 +2447,6 @@ get_mesa_program(GLcontext *ctx, struct gl_shader_program *shader_program,
|
|||
v.ctx = ctx;
|
||||
v.prog = prog;
|
||||
|
||||
v.mem_ctx = talloc_new(NULL);
|
||||
|
||||
/* Emit Mesa IR for main(). */
|
||||
visit_exec_list(shader->ir, &v);
|
||||
v.ir_to_mesa_emit_op0(NULL, OPCODE_END);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue