projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
180df4d
)
mesa: use Elements() for loop limit
author
Brian Paul
<brianp@vmware.com>
Fri, 22 May 2009 20:27:42 +0000
(14:27 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 22 May 2009 20:27:42 +0000
(14:27 -0600)
src/mesa/main/api_arrayelt.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/api_arrayelt.c
b/src/mesa/main/api_arrayelt.c
index 703eeebfc33cfac39323c7ea6e2a387311150dfb..f5b7d1e1385051e76067b2bf8a00dc4850bfb412 100644
(file)
--- 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;