Changeset 10821 for code/branches/cpp11_v2/src/libraries/core/Game.cc
- Timestamp:
- Nov 21, 2015, 7:05:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/Game.cc
r10772 r10821 612 612 // Check if graphics is still required 613 613 bool graphicsRequired = false; 614 for ( unsigned i = 0; i < loadedStates_.size(); ++i)615 graphicsRequired |= loadedStates_[i]->getInfo().bGraphicsMode;614 for (auto & elem : loadedStates_) 615 graphicsRequired |= elem->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.