Silence those remaining of the annoying warnings that are printed when loading the overworld

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10758 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-01-30 01:00:33 +00:00
parent e346b44ba1
commit b29456012c

View File

@ -865,7 +865,11 @@ video::ITexture *IrrDriver::getTexture(const std::string &filename,
{
video::ITexture* out;
if(!is_premul && !is_prediv)
{
if (!complain_if_not_found) m_device->getLogger()->setLogLevel(ELL_NONE);
out = m_video_driver->getTexture(filename.c_str());
if (!complain_if_not_found) m_device->getLogger()->setLogLevel(ELL_WARNING);
}
else
{
// FIXME: can't we just do this externally, and just use the