Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 6, 2016, 9:18:13 PM (8 years ago)
Author:
landauf
Message:

fixed overlays with ogre 1.9.
OverlaySystem must be initialized once after ogre-root and connected as listener to every (?) scene manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ogre1.9/src/orxonox/Scene.cc

    r11131 r11132  
    9494            this->sceneManager_->addRenderQueueListener(this->renderQueueListener_);//add our own renderQueueListener
    9595#if OGRE_VERSION >= 0x010900
    96             this->overlaySystem_ = new Ogre::OverlaySystem();
    97             this->sceneManager_->addRenderQueueListener(this->overlaySystem_);
     96            this->sceneManager_->addRenderQueueListener(GraphicsManager::getInstance().getOverlaySystem());
    9897#endif
    9998
     
    142141            {
    143142#if OGRE_VERSION >= 0x010900
    144                 this->sceneManager_->removeRenderQueueListener(this->overlaySystem_);
    145                 delete this->overlaySystem_;
     143                this->sceneManager_->removeRenderQueueListener(GraphicsManager::getInstance().getOverlaySystem());
    146144#endif
    147145                this->sceneManager_->removeRenderQueueListener(this->renderQueueListener_);
Note: See TracChangeset for help on using the changeset viewer.