Skip to content

Commit

Permalink
Fix disabling anisotropic filtering.
Browse files Browse the repository at this point in the history
The anisotropic value needs to be set to 1 to disable it, not 0.
Anti-aliasing also had the same logic, so I updated that as well.
Technically that disabled with either 0 or 1, but the BZDB value for
multisample was 1 for disabled.
  • Loading branch information
blast007 committed Aug 6, 2023
1 parent f2f8c0b commit 861d9bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bzflag/DisplayMenu.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ void DisplayMenu::callback(HUDuiControl* w, const void* data)
case 'A':
{
int aniso = list->getIndex();
BZDB.setInt("aniso", (aniso == 0)?0:(int)pow(2, aniso));
BZDB.setInt("aniso", (int)pow(2, aniso));
TextureManager& tm = TextureManager::instance();
tm.setMaxFilter(tm.getMaxFilter());
sceneRenderer->notifyStyleChange();
Expand Down Expand Up @@ -517,7 +517,7 @@ void DisplayMenu::callback(HUDuiControl* w, const void* data)
case 'm':
{
int multi = list->getIndex();
BZDB.setInt("multisample", (multi == 0)?0:(int)pow(2, multi));
BZDB.setInt("multisample", (int)pow(2, multi));
break;
}
case 'g':
Expand Down

0 comments on commit 861d9bd

Please sign in to comment.