Changeset 10524 for code/branches/core7/src/libraries/core/Core.cc
- Timestamp:
- Jun 4, 2015, 10:32:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/Core.cc
r10520 r10524 309 309 310 310 // Any exception should trigger this, even in upgradeToGraphics (see its remarks) 311 Loki::ScopeGuard unloader = Loki::MakeObjGuard(*this, &Core::unloadGraphics );311 Loki::ScopeGuard unloader = Loki::MakeObjGuard(*this, &Core::unloadGraphics, true); 312 312 313 313 // Upgrade OGRE to receive a render window … … 357 357 } 358 358 359 void Core::unloadGraphics( )359 void Core::unloadGraphics(bool loadGraphicsManagerWithoutRenderer) 360 360 { 361 361 orxout(internal_info) << "unloading graphics in Core" << endl; … … 368 368 // Load Ogre::Root again, but without the render system 369 369 try 370 { this->graphicsManager_ = new GraphicsManager(false); } 370 { 371 if (loadGraphicsManagerWithoutRenderer) 372 this->graphicsManager_ = new GraphicsManager(false); 373 } 371 374 catch (...) 372 375 {
Note: See TracChangeset
for help on using the changeset viewer.