summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-07-07 14:04:30 -0700
committerEric Anholt <eric@anholt.net>2010-07-07 14:06:26 -0700
commit43b5b03d67ce890e867c81d4a5cfc4871d711d43 (patch)
tree0927d33c92e7503d51478495fb23ba9daa941a88 /src
parentacf88f2769c15c9185abe5bd76a885218f431e58 (diff)
glsl2: Actually add the declaration of _post_incdec_temp.
Diffstat (limited to 'src')
-rw-r--r--src/glsl/ast_to_hir.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index b21131f60f..e716b8a11e 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -571,6 +571,7 @@ get_lvalue_copy(exec_list *instructions, ir_rvalue *lvalue)
/* FINISHME: Give unique names to the temporaries. */
var = new(ctx) ir_variable(lvalue->type, "_post_incdec_tmp");
+ instructions->push_tail(var);
var->mode = ir_var_auto;
instructions->push_tail(new(ctx) ir_assignment(new(ctx) ir_dereference_variable(var),