diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-22 14:32:45 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-22 14:32:45 -0600 |
commit | 842b4cd3cdb313751647e229a9aa3f0001e03d15 (patch) | |
tree | 2c6f9cd5ff1c89f2292cfbd3c66f92de99e44a19 /src/mesa | |
parent | ce7a049191c14be1d3dd456cdc72463b01ccf34c (diff) |
mesa: use Elements() for loop limit
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_rasterpos.c | 2 |
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; |