mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
glsl2: When stealing var->constant_value, steal its children as well.
Fixes: glsl1-GLSL 1.20 uniform array constructor
This commit is contained in:
parent
9a670c2e9b
commit
f9b0e5e322
1 changed files with 1 additions and 1 deletions
|
|
@ -911,7 +911,7 @@ steal_memory(ir_instruction *ir, void *new_ctx)
|
|||
ir_variable *var = ir->as_variable();
|
||||
ir_constant *constant = ir->as_constant();
|
||||
if (var != NULL && var->constant_value != NULL)
|
||||
talloc_steal(ir, var->constant_value);
|
||||
steal_memory(var->constant_value, ir);
|
||||
|
||||
/* The components of aggregate constants are not visited by the normal
|
||||
* visitor, so steal their values by hand.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue