fix incorrect texcoord attribute index
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 24 Feb 2004 14:59:26 +0000 (14:59 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 24 Feb 2004 14:59:26 +0000 (14:59 +0000)
src/mesa/main/api_arrayelt.c

index 27a2c0a3831241c252a5304ba189062b1e05125a..f42854a4db6088f79a84be0c209390496b64d2be 100644 (file)
@@ -726,7 +726,7 @@ static void _ae_update_state( GLcontext *ctx )
          struct gl_client_array *attribArray = &ctx->Array.TexCoord[i];
          at->array = attribArray;
          at->func = AttribFuncs[at->array->Normalized][at->array->Size-1][TYPE_IDX(at->array->Type)];
-         at->index = i;
+         at->index = VERT_ATTRIB_TEX0 + i;
          at++;
       }
    }