1
0
Fork 1
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:
Chris Robinson 2015-12-13 15:20:59 -08:00
parent fb6abb53ae
commit 646092ce3a

View file

@ -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)