Changeset 5680 for code/branches/resource3
- Timestamp:
- Aug 25, 2009, 1:57:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource3/src/core/Core.cc
r5679 r5680 286 286 287 287 // Load OGRE excluding the renderer and the render window 288 this->graphicsManager_.reset(new GraphicsManager(false));288 //this->graphicsManager_.reset(new GraphicsManager(false)); 289 289 290 290 // initialise Tcl … … 310 310 311 311 // Upgrade OGRE to receive a render window 312 graphicsManager_->upgradeToGraphics(); 312 //graphicsManager_->upgradeToGraphics(); 313 graphicsManager_.reset(new GraphicsManager(true)); 313 314 314 315 // The render window width and height are used to set up the mouse movement. … … 334 335 335 336 // 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(); 345 347 346 348 bGraphicsLoaded_ = false;
Note: See TracChangeset
for help on using the changeset viewer.