Also, did you see this line near the array?

```
CheckMenuItem(menu, texfilteringitems[i], MF_BYCOMMAND | ((i == g_Config.iTexFiltering-2) ? MF_CHECKED : MF_UNCHECKED));
```

That -2 and such looks possibly hazardous.  I can bet that if you go into settings in the ui, and undo texture filtering, it will uncheck all four items in the windows ui (including off), and if you check the second item it'll probably show the wrong one as checked...

-[Unknown]