projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c353896
)
mesa: fix loop over generic attribs in update_arrays()
author
Brian Paul
<brianp@vmware.com>
Fri, 22 May 2009 19:50:31 +0000
(13:50 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 22 May 2009 19:50:31 +0000
(13:50 -0600)
src/mesa/main/state.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/state.c
b/src/mesa/main/state.c
index f18fc8f6837a4aa39412420e6324691ca299f0da..94e37e3dab5f9908d3f9a70517377a631e39d802 100644
(file)
--- a/
src/mesa/main/state.c
+++ b/
src/mesa/main/state.c
@@
-159,7
+159,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);
}