1
0
Fork 0

Silence a warning on exit.

This commit is contained in:
Automatic Release Builder 2020-09-30 14:39:41 +01:00 committed by James Turner
parent cc2178f349
commit c7b90a05d7

View file

@ -231,7 +231,9 @@ FGGlobals::~FGGlobals()
}
osgDB::Registry::instance()->clearObjectCache();
if (subsystem_mgr->get_subsystem(FGScenery::staticSubsystemClassId())) {
subsystem_mgr->remove(FGScenery::staticSubsystemClassId());
}
// renderer touches subsystems during its destruction
set_renderer(nullptr);