Mesa (master): mesa: use Elements() for loop limit
Brian Paul
brianp at kemper.freedesktop.org
Fri May 22 21:02:15 UTC 2009
Module: Mesa
Branch: master
Commit: ce7a049191c14be1d3dd456cdc72463b01ccf34c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ce7a049191c14be1d3dd456cdc72463b01ccf34c
Author: Brian Paul <brianp at vmware.com>
Date: Fri May 22 14:32:37 2009 -0600
mesa: use Elements() for loop limit
---
src/mesa/main/context.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 5e0f2d7..ff9dd48 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -455,7 +455,7 @@ _mesa_init_current(GLcontext *ctx)
GLuint i;
/* Init all to (0,0,0,1) */
- for (i = 0; i < VERT_ATTRIB_MAX; i++) {
+ for (i = 0; i < Elements(ctx->Current.Attrib); i++) {
ASSIGN_4V( ctx->Current.Attrib[i], 0.0, 0.0, 0.0, 1.0 );
}
More information about the mesa-commit
mailing list