From fc2cf1403860ebc8769dfa36cf7dcdebc1baa305 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 30 Oct 2012 09:39:20 -0600 Subject: 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 --- src/mesa/swrast/s_texfetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa') 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, -- cgit v1.2.3