summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-05-22 14:32:37 -0600
committerBrian Paul <[email protected]>2009-05-22 14:32:37 -0600
commitce7a049191c14be1d3dd456cdc72463b01ccf34c (patch)
treee201633366a59fc4bcd70e041a96e588bb68f596 /src/mesa/main/context.c
parent8091aa86337b5541e70f0a83bc9b13c55faec559 (diff)
mesa: use Elements() for loop limit
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 5e0f2d7b1bd..ff9dd488c74 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 );
}