ducttape / ducttape-engine

Ducttape Engine - A universal game engine

Home Page:http://ducttape-dev.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get rid of OGRE glx icon warning

svenstaro opened this issue · comments

The exception is apparently confusing quite a few people and we would like a neat icon in the window anyway.

Problem is - users will always need an icon file. This part is hard-coded in Ogre and cannot be turned off, AFAIK... We could try to provide an empty resource, though.

Depends on #125.

commented

Even if you provide a resource, the resource groups are added after that error comes up, so you still get the error. As far as I know there's no way to turn it off.

commented

aha, if you add the line

Ogre::ResourceGroupManager::getSingletonPtr()->addResourceLocation("../data", "FileSystem", "General");

before mOgreRoot->createRenderWindow() is called at line 115 of DisplayManager.cpp, it will fix this. We should probably figure out a more generalized way to do this, in case the programmer wants to put his resources somewhere other than a data folder.

Yes, I figured that out as well but sadly due to our creation order this isn't trivial.

commented

maybe add a compile time definition like GLX_ICON or GLX_ICON_DIR?

Sounds hacky. :/

I got no better solution though.