mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 15:16:12 +00:00
Fixed: Anisotropic Filtering 2x didn't work
--HG-- branch : develop
This commit is contained in:
parent
86a866d4cb
commit
3dafe1ff1f
1 changed files with 4 additions and 3 deletions
|
@ -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…
Reference in a new issue