diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-22 18:48:20 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-23 16:12:44 -0700 |
commit | 82ad90f8cf0860a4065f3a4ece6dc66b1e408c12 (patch) | |
tree | 651db89892c3facec88b761aad6bebd4beeed145 | |
parent | 22147be898fd5a1737efd677244c2c5618644e7e (diff) |
Fix the swizzling of vector constructors from scalars.
A refactor turned 'i' into '1', meaning everything writemasked into
the y component.
-rw-r--r-- | glsl_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glsl_types.cpp b/glsl_types.cpp index 4cd0f46aab..b4abfdd7b6 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); |