always assign texcoord[i][3] to silence valgrind
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 31 Aug 2003 18:55:55 +0000 (18:55 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 31 Aug 2003 18:55:55 +0000 (18:55 +0000)
src/mesa/swrast/s_span.c

index 59e8925..a3be973 100644 (file)
@@ -515,6 +515,7 @@ interpolate_texcoords(GLcontext *ctx, struct sw_span *span)
                texcoord[i][0] = s * invQ;
                texcoord[i][1] = t * invQ;
                texcoord[i][2] = r * invQ;
+               texcoord[i][3] = q;
                s += dsdx;
                t += dtdx;
                r += drdx;
@@ -526,6 +527,7 @@ interpolate_texcoords(GLcontext *ctx, struct sw_span *span)
                texcoord[i][0] = s * invQ;
                texcoord[i][1] = t * invQ;
                texcoord[i][2] = r * invQ;
+               texcoord[i][3] = q;
                s += dsdx;
                t += dtdx;
                r += drdx;