glsl2: Actually add the declaration of _post_incdec_temp.

This commit is contained in:
Eric Anholt 2010-07-07 14:04:30 -07:00
parent acf88f2769
commit 43b5b03d67

View file

@ -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),