A warning about "Unsupported texture" is caused by irrlicht internally.
To get a warning-free release, this particular message is now only printed in debug mode (and a line is added that this message will not be printed in release mode). Just a dirty work around, we can't change this and have to wait for irrlicht to get fixed. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5203 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -535,6 +535,18 @@ EventPropagation InputManager::input(const SEvent& event)
|
||||
// Ignore 'normal' messages
|
||||
if (event.LogEvent.Level>0)
|
||||
{
|
||||
// Unfortunatly irrlicht produces some internal error/warnings
|
||||
// messages that can't be avoided (see COpenGLTexture where
|
||||
// the constructor of COpenGLFBOTexture is used without
|
||||
// specifying a color format, so the detault format (ECF_UNKOWNO)
|
||||
// is used, which produces this error message). In non-debug
|
||||
// mode ignore this error message, but leave it in for debugging.
|
||||
if(std::string(event.LogEvent.Text)=="Unsupported texture format")
|
||||
#ifdef DEBUG
|
||||
printf("The following message will not be printed in release mode:\n");
|
||||
#else
|
||||
return EVENT_BLOCK;
|
||||
#endif
|
||||
printf("Level %d: %s\n",
|
||||
event.LogEvent.Level,event.LogEvent.Text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user