From: James Turner Date: Fri, 6 Dec 2013 17:33:13 +0000 (+0000) Subject: Reset: clear the osg object cache X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6763d232cd6041b01b0770c6f5a7f22e034d6385;p=flightgear.git Reset: clear the osg object cache --- diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 67a7cb583..e33c1aebd 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -977,6 +977,8 @@ void fgStartNewReset() // 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 eventHandler = render->getEventHandler();