commit | 680abf8a02bd88e55ebaa81326c7621a745bedd4 | [log] [tgz] |
---|---|---|
author | Brian <brian@yutani.localnet.net> | Mon Mar 26 13:04:57 2007 -0600 |
committer | Brian <brian@yutani.localnet.net> | Mon Mar 26 13:46:46 2007 -0600 |
tree | 813819ee33d95695dcf9b348a06131ce4c4e2e23 | |
parent | 11702680888038a22d9a406ea5646af2902c125e [diff] [blame] |
In _mesa_lookup_parameter_constant() make sure we return a full, 4-component swizzle.
diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c index adffafd..2c8a340 100644 --- a/src/mesa/shader/prog_parameter.c +++ b/src/mesa/shader/prog_parameter.c
@@ -532,6 +532,10 @@ } } } + /* smear last value to remaining positions */ + for (; j < 4; j++) + swz[j] = swz[j-1]; + if (match == vSize) { *posOut = i; *swizzleOut = MAKE_SWIZZLE4(swz[0], swz[1], swz[2], swz[3]);