summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-22 14:27:42 -0600
committerBrian Paul <brianp@vmware.com>2009-05-22 14:27:42 -0600
commit2a3d118a8e4c048e5d850a29301c02f886ba09d4 (patch)
tree33d372269ffe286f463ba1bfbc2a383d9e86b229
parent180df4d328166a21fa9bb847b52ec1ba8f95dfcc (diff)
mesa: use Elements() for loop limit
-rw-r--r--src/mesa/main/api_arrayelt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c
index 703eeebfc3..f5b7d1e138 100644
--- a/src/mesa/main/api_arrayelt.c
+++ b/src/mesa/main/api_arrayelt.c
@@ -1153,7 +1153,7 @@ static void _ae_update_state( GLcontext *ctx )
}
/* generic vertex attribute arrays */
- for (i = 1; i < VERT_ATTRIB_MAX; i++) { /* skip zero! */
+ for (i = 1; i < Elements(arrayObj->VertexAttrib); i++) { /* skip zero! */
struct gl_client_array *attribArray = &arrayObj->VertexAttrib[i];
if (attribArray->Enabled) {
at->array = attribArray;