From b29456012cd8396ef45cd40d5156d98b569480f1 Mon Sep 17 00:00:00 2001 From: auria Date: Mon, 30 Jan 2012 01:00:33 +0000 Subject: [PATCH] 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 --- src/graphics/irr_driver.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index cf3dd9568..55c5ba07d 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -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