summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-06-01 15:03:54 -0600
committerBrian Paul <brianp@vmware.com>2009-06-01 15:04:35 -0600
commitcf997e0d2e8996f7ff675218ba2f3a67f5267d93 (patch)
tree6c24504c56b29deaf0b64d4ccf575c18bf01979b
parent506d3403633b1ec1e2e961883ae3497a9b1496bb (diff)
mesa: fix loop over generic attribs in update_arrays()
(cherry picked from commit 1045481dd96dec6e37f4b623b1dbae8af381de75)
-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 7998e81393e..0c977d4531e 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -157,7 +157,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);
}