I searched for this and it was an issue in the past (2006 heh), but I definitely think it qualifies as a paper cut because of the following:
This will always work (assuming code before/after obviously):
Code: Select all
OgreRoot::getSingleton().initialise(true);
Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(5);
However, this will crash in the OpenGL renderer and not Direct3d 9:
Code: Select all
OgreRoot::getSingleton().initialise(false); // only difference
Ogre::TextureManager::getSingleton().setDefaultNumMipmaps(5);
This is due to the Direct3d 9 renderer instantiating the TextureManager in its _initialise() call, whereas OpenGl does it in _createWindow; the API should have similar behavior between rendersystems IMO.
Old issue (irrelevant imo)
http://www.ogre3d.org/forums/viewtopic.php?f=4&t=24100