summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-10-30 09:39:20 -0600
committerBrian Paul <brianp@vmware.com>2012-10-31 13:37:11 -0600
commitfc2cf1403860ebc8769dfa36cf7dcdebc1baa305 (patch)
tree0def47e9b3c2ac11fbf0aca522ff07939c8a89d8
parentf69fc3612768d9cfed974b9d6ecf6a70fa0db99c (diff)
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 <kenneth@whitecape.org>
-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 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,