summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-22 14:32:45 -0600
committerBrian Paul <brianp@vmware.com>2009-05-22 14:32:45 -0600
commit842b4cd3cdb313751647e229a9aa3f0001e03d15 (patch)
tree2c6f9cd5ff1c89f2292cfbd3c66f92de99e44a19 /src/mesa
parentce7a049191c14be1d3dd456cdc72463b01ccf34c (diff)
mesa: use Elements() for loop limit
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_rasterpos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c
index 7dd2352739..7a9c50b3fc 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.c
+++ b/src/mesa/state_tracker/st_cb_rasterpos.c
@@ -194,7 +194,7 @@ new_draw_rastpos_stage(GLcontext *ctx, struct draw_context *draw)
rs->stage.destroy = rastpos_destroy;
rs->ctx = ctx;
- for (i = 0; i < VERT_ATTRIB_MAX; i++) {
+ for (i = 0; i < Elements(rs->array); i++) {
rs->array[i].Size = 4;
rs->array[i].Type = GL_FLOAT;
rs->array[i].Stride = 0;