mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
Add warnings when loading unknown texture options
This commit is contained in:
parent
fb6abb53ae
commit
646092ce3a
1 changed files with 4 additions and 0 deletions
|
@ -461,6 +461,8 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
|
|||
min = osg::Texture::NEAREST;
|
||||
mag = osg::Texture::NEAREST;
|
||||
}
|
||||
else if(filter != "linear")
|
||||
std::cerr<< "Invalid texture filtering option: "<<filter <<std::endl;
|
||||
|
||||
std::string mipmap = Settings::Manager::getString("texture mipmapping", "General");
|
||||
if(mipmap == "nearest")
|
||||
|
@ -472,6 +474,8 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
|
|||
}
|
||||
else if(mipmap != "none")
|
||||
{
|
||||
if(mipmap != "linear")
|
||||
std::cerr<< "Invalid texture mipmapping option: "<<mipmap <<std::endl;
|
||||
if(min == osg::Texture::NEAREST)
|
||||
min = osg::Texture::NEAREST_MIPMAP_LINEAR;
|
||||
else if(min == osg::Texture::LINEAR)
|
||||
|
|
Loading…
Reference in a new issue