Code: Select all
textureUnitStateA->setTextureName("Banana.tga");
textureUnitStateB->setTextureName("banana.tga");
Code: Select all
textureUnitStateA->setTextureName("banana.tga");
textureUnitStateB->setTextureName("banana.tga");
I can imagine this makes sense on Linux/Mac where the file system is case sensitive, but on Windows Ogre is simply loading the exact same texture twice. Is there some way to fix this? I don't know whether under the hood the memory is also used twice or whether it just reloads and overwrites the previous texture.
My current workaround for this behaviour is to just always convert my texture names to lower case before sending them to Ogre. However, this requires that I think of this at all times, so it's a rather bug-prone solution.