1
0
Fork 0

Clear the custom OSG notify logger on shutdown.

Should avert crashes due to order of static destruction.
This commit is contained in:
James Turner 2014-01-12 17:18:35 +00:00
parent 7b8a64b614
commit 7316360421

View file

@ -315,6 +315,11 @@ void fgOSExit(int code)
viewer->setDone(true);
viewer->getDatabasePager()->cancel();
status = code;
// otherwise we crash if OSG does logging during static destruction, eg
// GraphicsWindowX11, since OSG statics may have been created before the
// sglog static, despite our best efforts in boostrap.cxx
osg::setNotifyHandler(new osg::StandardNotifyHandler);
}
int fgOSMainLoop()