summaryrefslogtreecommitdiff
path: root/glsl_types.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-04-22 18:48:20 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-23 16:12:44 -0700
commit82ad90f8cf0860a4065f3a4ece6dc66b1e408c12 (patch)
tree651db89892c3facec88b761aad6bebd4beeed145 /glsl_types.cpp
parent22147be898fd5a1737efd677244c2c5618644e7e (diff)
Fix the swizzling of vector constructors from scalars.
A refactor turned 'i' into '1', meaning everything writemasked into the y component.
Diffstat (limited to 'glsl_types.cpp')
-rw-r--r--glsl_types.cpp2
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);