From d902504a677d39ace99b1f34a7a4d06d644dfb3d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 25 Apr 2016 15:57:05 -0600 Subject: hud: s/Elements/ARRAY_SIZE/ Reviewed-by: Jose Fonseca --- src/gallium/auxiliary/hud/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/hud/font.c') diff --git a/src/gallium/auxiliary/hud/font.c b/src/gallium/auxiliary/hud/font.c index 067de9e39c7..9fb9d7e055b 100644 --- a/src/gallium/auxiliary/hud/font.c +++ b/src/gallium/auxiliary/hud/font.c @@ -388,7 +388,7 @@ util_font_create_fixed_8x13(struct pipe_context *pipe, enum pipe_format tex_format = PIPE_FORMAT_NONE; int i; - for (i = 0; i < Elements(formats); i++) { + for (i = 0; i < ARRAY_SIZE(formats); i++) { if (screen->is_format_supported(screen, formats[i], PIPE_TEXTURE_RECT, 0, PIPE_BIND_SAMPLER_VIEW)) { -- cgit v1.2.3