mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 06:08:42 +00:00
Fixed: Anisotropic Filtering 2x didn't work
This commit is contained in:
parent
70909c92c0
commit
aa4f489d72
1 changed files with 4 additions and 3 deletions
|
@ -3517,6 +3517,7 @@ class CHandlerGameConfigApply : public IActionHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
// **** Apply Anisotropic Filtering
|
// **** 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();
|
sint nAnisotropic = NLGUI::CDBManager::getInstance()->getDbProp( GAME_CONFIG_ANISOTROPIC_DB )->getValue32();
|
||||||
|
|
||||||
if (nAnisotropic >= 0)
|
if (nAnisotropic >= 0)
|
||||||
|
@ -3526,9 +3527,9 @@ class CHandlerGameConfigApply : public IActionHandler
|
||||||
// compute the real anisotropic value
|
// compute the real anisotropic value
|
||||||
if (nAnisotropic > 0)
|
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;
|
anisotropic <<= 1;
|
||||||
}
|
}
|
||||||
|
@ -3538,7 +3539,7 @@ class CHandlerGameConfigApply : public IActionHandler
|
||||||
if (ClientCfg.AnisotropicFilter != anisotropic)
|
if (ClientCfg.AnisotropicFilter != anisotropic)
|
||||||
{
|
{
|
||||||
ClientCfg.AnisotropicFilter = anisotropic;
|
ClientCfg.AnisotropicFilter = anisotropic;
|
||||||
ClientCfg.writeInt("AnisotropicFilter", anisotropic);
|
ClientCfg.writeInt("AnisotropicFilter", ClientCfg.AnisotropicFilter);
|
||||||
requestReboot = true;
|
requestReboot = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue