From 82ad90f8cf0860a4065f3a4ece6dc66b1e408c12 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 22 Apr 2010 18:48:20 -0700 Subject: [PATCH] Fix the swizzling of vector constructors from scalars. A refactor turned 'i' into '1', meaning everything writemasked into the y component. --- glsl_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glsl_types.cpp b/glsl_types.cpp index 4cd0f46aab2..b4abfdd7b68 100644 --- a/glsl_types.cpp +++ b/glsl_types.cpp @@ -259,7 +259,7 @@ generate_vec_body_from_N_scalars(exec_list *instructions, ir_dereference *const lhs_ref = new ir_dereference(declarations[16]); ir_dereference *const rhs = new ir_dereference(declarations[i]); - ir_swizzle *lhs = new ir_swizzle(lhs_ref, 1, 0, 0, 0, 1); + ir_swizzle *lhs = new ir_swizzle(lhs_ref, i, 0, 0, 0, 1); inst = new ir_assignment(lhs, rhs, NULL); instructions->push_tail(inst); -- 2.30.2