Fixed: Anisotropic Filtering 2x didn't work

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent 86a866d4cb
commit 3dafe1ff1f

@ -3517,6 +3517,7 @@ class CHandlerGameConfigApply : public IActionHandler
}
// **** Apply Anisotropic Filtering
// read value from DB, it's a combo so value is the index of text
sint nAnisotropic = NLGUI::CDBManager::getInstance()->getDbProp( GAME_CONFIG_ANISOTROPIC_DB )->getValue32();
if (nAnisotropic >= 0)
@ -3526,9 +3527,9 @@ class CHandlerGameConfigApply : public IActionHandler
// compute the real anisotropic value
if (nAnisotropic > 0)
{
anisotropic = 1;
anisotropic = 2;
for(size_t i = 0; i < nAnisotropic; ++i)
for(size_t i = 1; i < nAnisotropic; ++i)
{
anisotropic <<= 1;
}
@ -3538,7 +3539,7 @@ class CHandlerGameConfigApply : public IActionHandler
if (ClientCfg.AnisotropicFilter != anisotropic)
{
ClientCfg.AnisotropicFilter = anisotropic;
ClientCfg.writeInt("AnisotropicFilter", anisotropic);
ClientCfg.writeInt("AnisotropicFilter", ClientCfg.AnisotropicFilter);
requestReboot = true;
}
}

Loading…
Cancel
Save