Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5680


Ignore:
Timestamp:
Aug 25, 2009, 1:57:34 PM (15 years ago)
Author:
rgrieder
Message:

Test commit: Not loading GraphicsManager in Core c'tor now (as it is in the trunk).
If this revision suddenly runs, then I still have little clue, but more than before

File:
1 edited

Legend:

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

    r5679 r5680  
    286286
    287287        // Load OGRE excluding the renderer and the render window
    288         this->graphicsManager_.reset(new GraphicsManager(false));
     288        //this->graphicsManager_.reset(new GraphicsManager(false));
    289289
    290290        // initialise Tcl
     
    310310
    311311        // Upgrade OGRE to receive a render window
    312         graphicsManager_->upgradeToGraphics();
     312        //graphicsManager_->upgradeToGraphics();
     313        graphicsManager_.reset(new GraphicsManager(true));
    313314
    314315        // The render window width and height are used to set up the mouse movement.
     
    334335
    335336        // Load Ogre::Root again, but without the render system
    336         try
    337             { this->graphicsManager_.reset(new GraphicsManager(false)); }
    338         catch (...)
    339         {
    340             COUT(0) << "An exception occurred during 'new GraphicsManager' while "
    341                     << "another exception was being handled. This will lead to undefined behaviour!" << std::endl
    342                     << "Terminating the program." << std::endl;
    343             abort();
    344         }
     337        //try
     338        //    { this->graphicsManager_.reset(new GraphicsManager(false)); }
     339        //catch (...)
     340        //{
     341        //    COUT(0) << "An exception occurred during 'new GraphicsManager' while "
     342        //            << "another exception was being handled. This will lead to undefined behaviour!" << std::endl
     343        //            << "Terminating the program." << std::endl;
     344        //    abort();
     345        //}
     346        this->graphicsManager_.reset();
    345347
    346348        bGraphicsLoaded_ = false;
Note: See TracChangeset for help on using the changeset viewer.