summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Schultz <[email protected]>2004-01-13 01:07:28 +0000
committerKarl Schultz <[email protected]>2004-01-13 01:07:28 +0000
commit1c5a45eafe7dae6db88484540edcdc17c39a0ee6 (patch)
tree0f0ea27f2a9eff1b9f90280b72858601e4ccc6a2
parent9bb7a55de9675e2e65c97eaa771554a9cef005ab (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index dc6cb39adc7..c9896ae3ca6 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 );