From: Brian Paul Date: Fri, 22 May 2009 20:32:45 +0000 (-0600) Subject: mesa: use Elements() for loop limit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=842b4cd3cdb313751647e229a9aa3f0001e03d15;p=mesa.git mesa: use Elements() for loop limit --- diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c index 7dd23527399..7a9c50b3fc2 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;