From aff6f6fdb26373b6c291c069bf2f8337feaa8b62 Mon Sep 17 00:00:00 2001 From: cc9cii Date: Wed, 15 Oct 2014 18:48:01 +1100 Subject: [PATCH] Setup OverlaySystem after Ogre::Root but before initialisation as per the API documentation. --- apps/opencs/editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/opencs/editor.cpp b/apps/opencs/editor.cpp index 8007207aa..a8fc6cd57 100644 --- a/apps/opencs/editor.cpp +++ b/apps/opencs/editor.cpp @@ -275,6 +275,9 @@ std::auto_ptr 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