mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 01:06:19 +00:00
Fixed: Anisotropic Filtering 2x didn't work
This commit is contained in:
parent
3c6e3c4eaa
commit
e00e9b9cd9
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