summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-04-21 23:58:13 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-04-21 23:58:13 -0700
commit67029b13b7e47a5e8368f7cb216cb332439cfd90 (patch)
tree88472a6587c70b5e5d3706bc221fed1ac65e8e36
parent6202cbfe3614141e330501959a7322522b35f4e4 (diff)
Actually emit temp declaration in vector comparison builtins.
-rw-r--r--builtin_function.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin_function.cpp b/builtin_function.cpp
index 4243340b3d..a6e1d37036 100644
--- a/builtin_function.cpp
+++ b/builtin_function.cpp
@@ -331,6 +331,7 @@ generate_vec_compare(exec_list *instructions,
return_type = glsl_type::get_instance(GLSL_TYPE_BOOL,
type->vector_elements, 1);
temp = new ir_variable(return_type, "temp");
+ instructions->push_tail(temp);
for (i = 0; i < type->vector_elements; i++) {
ir_assignment *assign;