projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1170268
)
In _mesa_lookup_parameter_constant() make sure we return a full, 4-component swizzle.
author
Brian
<brian@yutani.localnet.net>
Mon, 26 Mar 2007 19:04:57 +0000
(13:04 -0600)
committer
Brian
<brian@yutani.localnet.net>
Mon, 26 Mar 2007 19:46:46 +0000
(13:46 -0600)
src/mesa/shader/prog_parameter.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_parameter.c
b/src/mesa/shader/prog_parameter.c
index
adffafd
..
2c8a340
100644
(file)
--- a/
src/mesa/shader/prog_parameter.c
+++ b/
src/mesa/shader/prog_parameter.c
@@
-532,6
+532,10
@@
_mesa_lookup_parameter_constant(const struct gl_program_parameter_list *list,
}
}
}
+ /* 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]);