diff options
author | Karl Schultz <kschultz@freedesktop.org> | 2004-01-13 01:07:28 +0000 |
---|---|---|
committer | Karl Schultz <kschultz@freedesktop.org> | 2004-01-13 01:07:28 +0000 |
commit | 1c5a45eafe7dae6db88484540edcdc17c39a0ee6 (patch) | |
tree | 0f0ea27f2a9eff1b9f90280b72858601e4ccc6a2 | |
parent | 9bb7a55de9675e2e65c97eaa771554a9cef005ab (diff) |
init an uninitialized variable. This doesn't fix a latent bug because
the variable was multiplied by zero.
-rw-r--r-- | src/mesa/main/varray.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index dc6cb39adc..c9896ae3ca 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -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 ); |