diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-22 13:50:31 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-22 13:50:31 -0600 |
commit | 1045481dd96dec6e37f4b623b1dbae8af381de75 (patch) | |
tree | ff37de6d537002f0672e9b97420824491dc0ed14 | |
parent | c3538969e1ae3e626a618934aa8f35a7a22ddb39 (diff) |
mesa: fix loop over generic attribs in update_arrays()
-rw-r--r-- | src/mesa/main/state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index f18fc8f683..94e37e3dab 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); } |