From: Brian Paul Date: Tue, 30 Oct 2012 15:39:20 +0000 (-0600) Subject: swrast: remove explicit size from texfetch_funcs array X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc2cf1403860ebc8769dfa36cf7dcdebc1baa305;p=mesa.git swrast: remove explicit size from texfetch_funcs array By removing the array size, the static assertion to check for missing elements can do its job properly. This will catch cases where a new Mesa format is added but the swrast texfetch code isn't updated. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/swrast/s_texfetch.c b/src/mesa/swrast/s_texfetch.c index 741dd876cf1..7bfe3b941a3 100644 --- a/src/mesa/swrast/s_texfetch.c +++ b/src/mesa/swrast/s_texfetch.c @@ -115,7 +115,7 @@ static struct { FetchTexelFunc Fetch2D; FetchTexelFunc Fetch3D; } -texfetch_funcs[MESA_FORMAT_COUNT] = +texfetch_funcs[] = { { MESA_FORMAT_NONE,