From 87127775e8a260b5ea14b0e198ec6d79268ef150 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 26 Jun 2012 19:10:47 +0200 Subject: [PATCH] fix shutdown crash if ogre was not initialised yet --- libs/openengine/ogre/renderer.cpp | 2 +- libs/openengine/ogre/renderer.hpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/openengine/ogre/renderer.cpp b/libs/openengine/ogre/renderer.cpp index 7c0f88bd70..275b7385ab 100644 --- a/libs/openengine/ogre/renderer.cpp +++ b/libs/openengine/ogre/renderer.cpp @@ -114,7 +114,7 @@ void OgreRenderer::createWindow(const std::string &title, const WindowSettings& // create the semi-transparent black background texture used by the GUI. // has to be created in code with TU_DYNAMIC_WRITE_ONLY_DISCARDABLE param // so that it can be modified at runtime. - mTransparentBGTexture = Ogre::TextureManager::getSingleton().createManual( + Ogre::TextureManager::getSingleton().createManual( "transparent.png", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::TEX_TYPE_2D, diff --git a/libs/openengine/ogre/renderer.hpp b/libs/openengine/ogre/renderer.hpp index f1520a3db4..c7c30c8d4f 100644 --- a/libs/openengine/ogre/renderer.hpp +++ b/libs/openengine/ogre/renderer.hpp @@ -74,8 +74,6 @@ namespace OEngine Fader* mFader; bool logging; - Ogre::TexturePtr mTransparentBGTexture; - public: OgreRenderer() : mRoot(NULL)