Clear the custom OSG notify logger on shutdown.
Should avert crashes due to order of static destruction.
This commit is contained in:
parent
7b8a64b614
commit
7316360421
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue