Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 4, 2009, 11:05:17 PM (15 years ago)
Author:
rgrieder
Message:

Fixed an issue that could occur when singletons associated with ScopeID::Graphics (indirectly) asked for GameMode::showsGraphics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/Game.cc

    r5868 r5875  
    523523    void Game::loadGraphics()
    524524    {
    525         if (!GameMode::bShowsGraphics_s)
     525        if (!GameMode::showsGraphics())
    526526        {
    527527            core_->loadGraphics();
    528528            Loki::ScopeGuard graphicsUnloader = Loki::MakeObjGuard(*this, &Game::unloadGraphics);
    529             GameMode::bShowsGraphics_s = true;
    530529
    531530            // Construct all the GameStates that require graphics
     
    548547    void Game::unloadGraphics()
    549548    {
    550         if (GameMode::bShowsGraphics_s)
     549        if (GameMode::showsGraphics())
    551550        {
    552551            // Destroy all the GameStates that require graphics
     
    560559
    561560            core_->unloadGraphics();
    562             GameMode::bShowsGraphics_s = false;
    563561        }
    564562    }
Note: See TracChangeset for help on using the changeset viewer.