mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 22:15:32 +00:00
Check the FSAA setting of windows rather than system value.
This commit is contained in:
parent
303b0ee8c6
commit
6e8977348a
1 changed files with 7 additions and 24 deletions
|
@ -415,34 +415,17 @@ namespace CSVRender
|
|||
// minimise unnecessary ogre window creation by updating only when there is a change
|
||||
if(key == "Video/antialiasing")
|
||||
{
|
||||
std::string result;
|
||||
|
||||
Ogre::ConfigOptionMap& renderOpt =
|
||||
Ogre::Root::getSingleton().getRenderSystem()->getConfigOptions();
|
||||
|
||||
Ogre::ConfigOptionMap::iterator it = renderOpt.begin();
|
||||
|
||||
for(; it != renderOpt.end(); ++it)
|
||||
{
|
||||
if(it->first == "FSAA")
|
||||
result = it->second.currentValue;
|
||||
}
|
||||
|
||||
QString antialiasing = "0";
|
||||
unsigned int aa = mWindow->getFSAA();
|
||||
unsigned int antialiasing = 0;
|
||||
if(!list.empty())
|
||||
{
|
||||
antialiasing = list.at(0);
|
||||
|
||||
if(antialiasing == "MSAA 16") antialiasing = "16";
|
||||
else if(antialiasing == "MSAA 8") antialiasing = "8";
|
||||
else if(antialiasing == "MSAA 4") antialiasing = "4";
|
||||
else if(antialiasing == "MSAA 2") antialiasing = "2";
|
||||
if(list.at(0) == "MSAA 16") antialiasing = 16;
|
||||
else if(list.at(0) == "MSAA 8") antialiasing = 8;
|
||||
else if(list.at(0) == "MSAA 4") antialiasing = 4;
|
||||
else if(list.at(0) == "MSAA 2") antialiasing = 2;
|
||||
}
|
||||
|
||||
if(result != antialiasing.toStdString())
|
||||
{
|
||||
if(aa != antialiasing)
|
||||
updateOgreWindow();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue