summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-22 13:50:31 -0600
committerBrian Paul <brianp@vmware.com>2009-05-22 13:50:31 -0600
commit1045481dd96dec6e37f4b623b1dbae8af381de75 (patch)
treeff37de6d537002f0672e9b97420824491dc0ed14 /src/mesa/main
parentc3538969e1ae3e626a618934aa8f35a7a22ddb39 (diff)
mesa: fix loop over generic attribs in update_arrays()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/state.c2
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);
}