diff options
author | Eric Anholt <eric@anholt.net> | 2010-07-27 15:25:07 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-07-27 15:25:07 -0700 |
commit | f9b0e5e322a676cf778dc3785281040fcc0bd248 (patch) | |
tree | 2d3ae7d96032415da7f93516bf6ca7e256bb7f31 /src | |
parent | 9a670c2e9b7e07ba43d175f3bfb23951296794c4 (diff) |
glsl2: When stealing var->constant_value, steal its children as well.
Fixes:
glsl1-GLSL 1.20 uniform array constructor
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 6dccbd806e..c75d560c48 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -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. |