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();
|
osgDB::Registry::instance()->clearObjectCache();
|
||||||
|
if (subsystem_mgr->get_subsystem(FGScenery::staticSubsystemClassId())) {
|
||||||
subsystem_mgr->remove(FGScenery::staticSubsystemClassId());
|
subsystem_mgr->remove(FGScenery::staticSubsystemClassId());
|
||||||
|
}
|
||||||
|
|
||||||
// renderer touches subsystems during its destruction
|
// renderer touches subsystems during its destruction
|
||||||
set_renderer(nullptr);
|
set_renderer(nullptr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue