diff options
Diffstat (limited to 'src/gallium/auxiliary/hud/font.c')
-rw-r--r-- | src/gallium/auxiliary/hud/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |