swrast: remove explicit size from texfetch_funcs array
authorBrian Paul <brianp@vmware.com>
Tue, 30 Oct 2012 15:39:20 +0000 (09:39 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 31 Oct 2012 19:37:11 +0000 (13:37 -0600)
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>
src/mesa/swrast/s_texfetch.c

index 741dd876cf16bdd5e3e74a2121c4ca97b838608f..7bfe3b941a35655050fe5b5b863e3e485f3bbc07 100644 (file)
@@ -115,7 +115,7 @@ static struct {
    FetchTexelFunc Fetch2D;
    FetchTexelFunc Fetch3D;
 }
-texfetch_funcs[MESA_FORMAT_COUNT] =
+texfetch_funcs[] =
 {
    {
       MESA_FORMAT_NONE,