From: Brian Paul Date: Sun, 31 Aug 2003 18:55:55 +0000 (+0000) Subject: always assign texcoord[i][3] to silence valgrind X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b7a01a39ba5257407dddde38ef049856c34aa01;p=mesa.git always assign texcoord[i][3] to silence valgrind --- diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index 59e89252a05..a3be9734c3d 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -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;