Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10525 for code


Ignore:
Timestamp:
Jun 4, 2015, 11:09:40 PM (9 years ago)
Author:
landauf
Message:

unload debug overly while unloading graphics

Location:
code/branches/core7/src/libraries/core
Files:
3 edited

Legend:

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

    r10524 r10525  
    361361        orxout(internal_info) << "unloading graphics in Core" << endl;
    362362
     363        if (this->graphicsManager_)
     364            this->graphicsManager_->unloadDebugOverlay();
     365
    363366        safeObjectDelete(&graphicsScope_);
    364367        safeObjectDelete(&guiManager_);
  • code/branches/core7/src/libraries/core/GraphicsManager.cc

    r10509 r10525  
    141141        orxout(internal_status) << "destroying GraphicsManager..." << endl;
    142142
    143         Loader::getInstance().unload(debugOverlay_.get());
    144 
    145143        Ogre::WindowEventUtilities::removeWindowEventListener(renderWindow_, ogreWindowEventListener_);
    146144        ModifyConsoleCommand(__CC_printScreen_name).resetFunction();
     
    332330        debugOverlay_.reset(new XMLFile("debug.oxo"));
    333331        Loader::getInstance().load(debugOverlay_.get(), ClassTreeMask(), false);
     332    }
     333
     334    void GraphicsManager::unloadDebugOverlay()
     335    {
     336        Loader::getInstance().unload(debugOverlay_.get());
    334337    }
    335338
  • code/branches/core7/src/libraries/core/GraphicsManager.h

    r9675 r10525  
    9595        void upgradeToGraphics();
    9696        void loadDebugOverlay();
     97        void unloadDebugOverlay();
    9798        bool rendererLoaded() const { return renderWindow_ != NULL; }
    9899
Note: See TracChangeset for help on using the changeset viewer.