1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-05 05:45:37 +00:00

Setup OverlaySystem after Ogre::Root but before initialisation as per the API documentation.

This commit is contained in:
cc9cii 2014-10-15 18:48:01 +11:00
parent 5889fd5bd9
commit aff6f6fdb2

View file

@ -275,6 +275,9 @@ std::auto_ptr<sh::Factory> CS::Editor::setupGraphics()
Ogre::Root::getSingleton().setRenderSystem(Ogre::Root::getSingleton().getRenderSystemByName(renderSystem));
// Initialise Ogre::OverlaySystem after Ogre::Root but before initialisation
CSVRender::OverlaySystem::instance();
Ogre::Root::getSingleton().initialise(false);
// Create a hidden background window to keep resources