From: Brian Paul Date: Fri, 22 May 2009 19:50:31 +0000 (-0600) Subject: mesa: fix loop over generic attribs in update_arrays() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1045481dd96dec6e37f4b623b1dbae8af381de75;p=mesa.git mesa: fix loop over generic attribs in update_arrays() --- diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index f18fc8f6837..94e37e3dab5 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -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); }