mesa: fix loop over generic attribs in update_arrays()

This commit is contained in:
Brian Paul
2009-05-22 13:50:31 -06:00
parent c3538969e1
commit 1045481dd9

View File

@@ -159,7 +159,7 @@ update_arrays( GLcontext *ctx )
/* 16..31 */
if (ctx->VertexProgram._Current) {
for (i = VERT_ATTRIB_GENERIC0; i < VERT_ATTRIB_MAX; i++) {
for (i = 0; i < Elements(ctx->Array.ArrayObj->VertexAttrib); i++) {
if (ctx->Array.ArrayObj->VertexAttrib[i].Enabled) {
min = MIN2(min, ctx->Array.ArrayObj->VertexAttrib[i]._MaxElement);
}