diff options
author | Brian Paul <[email protected]> | 2016-04-26 18:10:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-04-28 09:04:24 -0600 |
commit | a609da60c034ab059ead213e6c25fe4d37bf7d43 (patch) | |
tree | 304c819444d2f3fa5dae43ba1ea1b51d659a23b2 /src/gallium/auxiliary/util/u_vbuf.c | |
parent | f365488eaaaaab8eb61bc614a105f397c5c80a6f (diff) |
gallium/util: s/Elements/ARRAY_SIZE/
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_vbuf.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_vbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c index e16ee3651e6..c4c26949b8d 100644 --- a/src/gallium/auxiliary/util/u_vbuf.c +++ b/src/gallium/auxiliary/util/u_vbuf.c @@ -269,7 +269,7 @@ boolean u_vbuf_get_caps(struct pipe_screen *screen, struct u_vbuf_caps *caps) for (i = 0; i < PIPE_FORMAT_COUNT; i++) caps->format_translation[i] = i; - for (i = 0; i < Elements(vbuf_format_fallbacks); i++) { + for (i = 0; i < ARRAY_SIZE(vbuf_format_fallbacks); i++) { enum pipe_format format = vbuf_format_fallbacks[i].from; if (!screen->is_format_supported(screen, format, PIPE_BUFFER, 0, |