st/mesa: replace Elements() with ARRAY_SIZE()
[mesa.git] / src / mesa / state_tracker / st_cb_rasterpos.c
index b051aedab9e1eaec4216aa9e3eac7f7caf7966dc..272cbb91d52fa955395b365eea3c660af89cf985 100644 (file)
@@ -191,7 +191,7 @@ new_draw_rastpos_stage(struct gl_context *ctx, struct draw_context *draw)
    rs->stage.destroy = rastpos_destroy;
    rs->ctx = ctx;
 
-   for (i = 0; i < Elements(rs->array); i++) {
+   for (i = 0; i < ARRAY_SIZE(rs->array); i++) {
       rs->array[i].Size = 4;
       rs->array[i].Type = GL_FLOAT;
       rs->array[i].Format = GL_RGBA;