Silence a warning on exit.
This commit is contained in:
parent
cc2178f349
commit
c7b90a05d7
1 changed files with 3 additions and 1 deletions
|
@ -231,7 +231,9 @@ FGGlobals::~FGGlobals()
|
|||
}
|
||||
|
||||
osgDB::Registry::instance()->clearObjectCache();
|
||||
subsystem_mgr->remove(FGScenery::staticSubsystemClassId());
|
||||
if (subsystem_mgr->get_subsystem(FGScenery::staticSubsystemClassId())) {
|
||||
subsystem_mgr->remove(FGScenery::staticSubsystemClassId());
|
||||
}
|
||||
|
||||
// renderer touches subsystems during its destruction
|
||||
set_renderer(nullptr);
|
||||
|
|
Loading…
Reference in a new issue