summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-05-22 14:23:02 -0600
committerBrian Paul <[email protected]>2009-05-22 14:23:02 -0600
commitd30163ad4201dcd5a594694ab87be9e59db47edd (patch)
tree60a31c222bfe457950ed6511a9fc4f780bdb87ec /src/mesa/vbo/vbo_context.c
parentb625fbaef2564236357f94eca803a15187e2636d (diff)
mesa: use Elements() for loop limit
Diffstat (limited to 'src/mesa/vbo/vbo_context.c')
-rw-r--r--src/mesa/vbo/vbo_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c
index f193a4bf1e0..90025f62fc9 100644
--- a/src/mesa/vbo/vbo_context.c
+++ b/src/mesa/vbo/vbo_context.c
@@ -214,7 +214,7 @@ GLboolean _vbo_CreateContext( GLcontext *ctx )
for (i = 0; i < 4; i++)
vbo->map_vp_none[28+i] = i;
- for (i = 0; i < VERT_ATTRIB_MAX; i++)
+ for (i = 0; i < Elements(vbo->map_vp_arb); i++)
vbo->map_vp_arb[i] = i;
}