summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_texfetch.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-02-28 08:57:20 -0700
committerBrian Paul <[email protected]>2015-03-02 08:55:30 -0700
commit16f7b7727569758a4df9c2bae3ca3a0de683960d (patch)
tree3cd212dadd2dbb23d95ab36f04beef7bb1ad2957 /src/mesa/swrast/s_texfetch.c
parent766f5cf8f88c08a7673beb492095ad8ca878bc22 (diff)
mesa/swrast: replace Elements() with ARRAY_SIZE()
Acked-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_texfetch.c')
-rw-r--r--src/mesa/swrast/s_texfetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_texfetch.c b/src/mesa/swrast/s_texfetch.c
index 242f8a43fa1..3c4ee15ba85 100644
--- a/src/mesa/swrast/s_texfetch.c
+++ b/src/mesa/swrast/s_texfetch.c
@@ -573,7 +573,7 @@ set_fetch_functions(const struct gl_sampler_object *samp,
}
#endif
- STATIC_ASSERT(Elements(texfetch_funcs) == MESA_FORMAT_COUNT);
+ STATIC_ASSERT(ARRAY_SIZE(texfetch_funcs) == MESA_FORMAT_COUNT);
if (samp->sRGBDecode == GL_SKIP_DECODE_EXT &&
_mesa_get_format_color_encoding(format) == GL_SRGB) {