diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/nir/nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index 5f86ecaa202..0f807ddcccf 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -445,7 +445,7 @@ nir_call_instr_create(void *mem_ctx, nir_function_overload *callee) instr->callee = callee; instr->num_params = callee->num_params; - instr->params = ralloc_array(mem_ctx, nir_deref_var *, instr->num_params); + instr->params = ralloc_array(instr, nir_deref_var *, instr->num_params); instr->return_deref = NULL; return instr; |