From: Brian Paul Date: Fri, 22 May 2009 20:09:35 +0000 (-0600) Subject: Merge branch 'mesa_7_5_branch' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fac334e6d33b0c9ffa2c5147079d728b647d0d2a;p=mesa.git Merge branch 'mesa_7_5_branch' --- fac334e6d33b0c9ffa2c5147079d728b647d0d2a diff --cc src/mesa/main/state.c index bfbefa55d44,94e37e3dab5..d5bdb63a97b --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@@ -194,9 -159,9 +194,9 @@@ 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); ++ for (i = 0; i < Elements(arrayObj->VertexAttrib); i++) { + if (arrayObj->VertexAttrib[i].Enabled) { - min = update_min(min, &arrayObj->VertexAttrib[i]); ++ min = MIN2(min, arrayObj->VertexAttrib[i]._MaxElement); } } }