#include <simgear/scene/model/modellib.hxx>
#include <simgear/scene/material/matlib.hxx>
+#include <simgear/scene/material/Effect.hxx>
#include <simgear/scene/model/particles.hxx>
#include <simgear/scene/tsync/terrasync.hxx>
// potentially others) can queue delete requests on the pager.
render->getViewer()->getDatabasePager()->cancel();
+ osgDB::Registry::instance()->clearObjectCache();
+
// preserve the event handler; re-creating it would entail fixing the
// idle handler
osg::ref_ptr<flightgear::FGEventHandler> eventHandler = render->getEventHandler();
globals->set_renderer(NULL);
globals->set_matlib(NULL);
- simgear::SGModelLib::resetPropertyRoot();
+ globals->set_chatter_queue(NULL);
+ simgear::clearEffectCache();
+ simgear::SGModelLib::resetPropertyRoot();
+
globals->resetPropertyRoot();
globals->restoreInitialState();