Index: src/mesa/shader/nvvertparse.c =================================================================== RCS file: /cvs/mesa/Mesa/src/mesa/shader/nvvertparse.c,v retrieving revision 1.19 diff -u -p -r1.19 nvvertparse.c --- src/mesa/shader/nvvertparse.c 24 Mar 2006 16:35:08 -0000 1.19 +++ src/mesa/shader/nvvertparse.c 19 Apr 2006 23:00:54 -0000 @@ -699,6 +699,9 @@ Parse_SwizzleSrcReg(struct parse_state * else { /* 2, 3 or 4-component swizzle */ GLint k; + + srcReg->Swizzle = 0; + for (k = 0; token[k] && k < 5; k++) { if (token[k] == 'x') srcReg->Swizzle |= 0 << (k*3);