mesa/main: replace Elements() with ARRAY_SIZE()
[mesa.git] / src / mesa / main / points.c
index 0a7807d77ac45f6cc9c09b0b0b5340ecd868159b..5ad1f38f36622872a8b6f4be6e1f707c02d9e29d 100644 (file)
@@ -253,7 +253,7 @@ _mesa_init_point(struct gl_context *ctx)
 
    ctx->Point.SpriteRMode = GL_ZERO; /* GL_NV_point_sprite (only!) */
    ctx->Point.SpriteOrigin = GL_UPPER_LEFT; /* GL_ARB_point_sprite */
-   for (i = 0; i < Elements(ctx->Point.CoordReplace); i++) {
+   for (i = 0; i < ARRAY_SIZE(ctx->Point.CoordReplace); i++) {
       ctx->Point.CoordReplace[i] = GL_FALSE; /* GL_ARB/NV_point_sprite */
    }
 }