Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 27, 2009, 11:13:25 AM (15 years ago)
Author:
rgrieder
Message:

GameStates requiring graphics (Level is not one of them because it uses showsGraphics() to distinguish) are now only constructed when basic graphic support is given (GraphicsManager, InputManager and GUIManager loaded).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource/src/core/Core.cc

    r3355 r3356  
    671671        try
    672672        {
    673             // process input events
    674             this->inputManager_->update(time);
    675             // process gui events
    676             this->guiManager_->update(time);
     673            if (this->bGraphicsLoaded_)
     674            {
     675                // process input events
     676                this->inputManager_->update(time);
     677                // process gui events
     678                this->guiManager_->update(time);
     679            }
    677680            // process thread commands
    678681            this->tclThreadManager_->update(time);
     
    696699        try
    697700        {
    698             // Render (doesn't throw)
    699             this->graphicsManager_->update(time);
     701            if (this->bGraphicsLoaded_)
     702            {
     703                // Render (doesn't throw)
     704                this->graphicsManager_->update(time);
     705            }
    700706        }
    701707        catch (const std::exception& ex)
Note: See TracChangeset for help on using the changeset viewer.