[Orxonox-commit 1089] r5810 - code/branches/core5/src/libraries/core
rgrieder at orxonox.net
rgrieder at orxonox.net
Sun Sep 27 15:31:37 CEST 2009
Author: rgrieder
Date: 2009-09-27 15:31:37 +0200 (Sun, 27 Sep 2009)
New Revision: 5810
Modified:
code/branches/core5/src/libraries/core/GraphicsManager.cc
Log:
Adding unloading code for the resource locations.
Modified: code/branches/core5/src/libraries/core/GraphicsManager.cc
===================================================================
--- code/branches/core5/src/libraries/core/GraphicsManager.cc 2009-09-27 13:30:42 UTC (rev 5809)
+++ code/branches/core5/src/libraries/core/GraphicsManager.cc 2009-09-27 13:31:37 UTC (rev 5810)
@@ -131,6 +131,11 @@
{
Ogre::WindowEventUtilities::removeWindowEventListener(renderWindow_, ogreWindowEventListener_.get());
// TODO: Destroy the console command
+
+ // Undeclare the resources
+ Loader::unload(resources_.get());
+ if (Core::isDevelopmentRun())
+ Loader::unload(extResources_.get());
}
void GraphicsManager::setConfigValues()
More information about the Orxonox-commit
mailing list