init an uninitialized variable. This doesn't fix a latent bug because
authorKarl Schultz <kschultz@freedesktop.org>
Tue, 13 Jan 2004 01:07:28 +0000 (01:07 +0000)
committerKarl Schultz <kschultz@freedesktop.org>
Tue, 13 Jan 2004 01:07:28 +0000 (01:07 +0000)
the variable was multiplied by zero.

src/mesa/main/varray.c

index dc6cb39adc7b99863152635454d26acb10789063..c9896ae3ca642e702df89594fa6e80b2367c85ff 100644 (file)
@@ -754,7 +754,7 @@ _mesa_InterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer)
    /* Texcoords */
    coordUnitSave = ctx->Array.ActiveTexture;
    if (tflag) {
-      GLuint i;
+      GLuint i=0;
       /* enable unit 0 texcoord array */
       _mesa_ClientActiveTextureARB( GL_TEXTURE0_ARB );
       _mesa_EnableClientState( GL_TEXTURE_COORD_ARRAY );