mesa: fix loop over generic attribs in update_arrays()
This commit is contained in:
@@ -159,7 +159,7 @@ update_arrays( GLcontext *ctx )
|
|||||||
|
|
||||||
/* 16..31 */
|
/* 16..31 */
|
||||||
if (ctx->VertexProgram._Current) {
|
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) {
|
if (ctx->Array.ArrayObj->VertexAttrib[i].Enabled) {
|
||||||
min = MIN2(min, ctx->Array.ArrayObj->VertexAttrib[i]._MaxElement);
|
min = MIN2(min, ctx->Array.ArrayObj->VertexAttrib[i]._MaxElement);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user