diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-22 14:27:42 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-22 14:27:42 -0600 |
commit | 2a3d118a8e4c048e5d850a29301c02f886ba09d4 (patch) | |
tree | 33d372269ffe286f463ba1bfbc2a383d9e86b229 | |
parent | 180df4d328166a21fa9bb847b52ec1ba8f95dfcc (diff) |
mesa: use Elements() for loop limit
-rw-r--r-- | src/mesa/main/api_arrayelt.c | 2 |
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; |