From 67029b13b7e47a5e8368f7cb216cb332439cfd90 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 21 Apr 2010 23:58:13 -0700 Subject: [PATCH] Actually emit temp declaration in vector comparison builtins. --- builtin_function.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin_function.cpp b/builtin_function.cpp index 4243340b3d7..a6e1d370365 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; -- 2.30.2