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 59e89252a051d490c62640c23d0e7df8fdbaaecf..a3be9734c3de88453ed899b1a1aaf6f372af4d95 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;