Changeset 10916 for code/branches/cpp11_v2/src/libraries/core/Game.cc
- Timestamp:
- Dec 2, 2015, 11:22:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/Game.cc
r10821 r10916 612 612 // Check if graphics is still required 613 613 bool graphicsRequired = false; 614 for ( auto & elem: loadedStates_)615 graphicsRequired |= elem->getInfo().bGraphicsMode;614 for (const std::shared_ptr<GameState>& state : loadedStates_) 615 graphicsRequired |= state->getInfo().bGraphicsMode; 616 616 if (!graphicsRequired) 617 617 this->unloadGraphics(!this->bAbort_); // if abort is false, that means the game is still running while unloading graphics. in this case we load a graphics manager without renderer (to keep all necessary ogre instances alive)
Note: See TracChangeset
for help on using the changeset viewer.