Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 14, 2009, 9:04:31 PM (15 years ago)
Author:
rgrieder
Message:

Hack-fixed exit crash: The Map stores a static MaterialPtr that gets destroyed after main and therefore after delete Ogre::Root.
This is no real solution because the Map destructor isn't even called at all, so I had to place a call in the GraphicsManager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/GraphicsManager.cc

    r3131 r3172  
    6666#include "tools/ParticleInterface.h"
    6767
     68// HACK!
     69#include "overlays/map/Map.h"
     70
    6871namespace orxonox
    6972{
     
    142145//            Ogre::RenderSystem* renderer = this->ogreRoot_->getRenderSystem();
    143146//            renderer->destroyRenderWindow("Orxonox");
     147
     148            // HACK! This fixes an exit crash
     149            Map::hackDestroyMap();
    144150
    145151            // unload all compositors
Note: See TracChangeset for help on using the changeset viewer.