In _mesa_lookup_parameter_constant() make sure we return a full, 4-component swizzle.

This commit is contained in:
Brian
2007-03-26 13:04:57 -06:00
parent 1170268088
commit 680abf8a02
+4
View File
@@ -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]);