mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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>
This commit is contained in:
parent
f69fc36127
commit
fc2cf14038
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ static struct {
|
||||||
FetchTexelFunc Fetch2D;
|
FetchTexelFunc Fetch2D;
|
||||||
FetchTexelFunc Fetch3D;
|
FetchTexelFunc Fetch3D;
|
||||||
}
|
}
|
||||||
texfetch_funcs[MESA_FORMAT_COUNT] =
|
texfetch_funcs[] =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
MESA_FORMAT_NONE,
|
MESA_FORMAT_NONE,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue