Mesa (mesa_7_4_branch): mesa: fix loop over generic attribs in update_arrays()
Brian Paul
brianp at kemper.freedesktop.org
Mon Jun 1 21:08:49 UTC 2009
Module: Mesa
Branch: mesa_7_4_branch
Commit: cf997e0d2e8996f7ff675218ba2f3a67f5267d93
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf997e0d2e8996f7ff675218ba2f3a67f5267d93
Author: Brian Paul <brianp at vmware.com>
Date: Mon Jun 1 15:03:54 2009 -0600
mesa: fix loop over generic attribs in update_arrays()
(cherry picked from commit 1045481dd96dec6e37f4b623b1dbae8af381de75)
---
src/mesa/main/state.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 7998e81..0c977d4 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);
}
More information about the mesa-commit
mailing list