summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-06-01 15:03:54 -0600
committerBrian Paul <brianp@vmware.com>2009-06-17 11:30:03 -0600
commitbb69a7c70f477125c18fd332b11484da5ae6b6c5 (patch)
tree5681abbf5a4ef23add67f93326b745e9d0eb014e /src
parentb03328ab0534367fef0158551195a1ba8749f078 (diff)
mesa: fix loop over generic attribs in update_arrays()
(cherry picked from commit 1045481dd96dec6e37f4b623b1dbae8af381de75)
Diffstat (limited to 'src')
-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 7e2afa320b5..3978145b480 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);
}