Fix Sentry issue: FGCom crash on exit
FGCom was added to the wrong group, leading it to be shutdown after FGSoundManager, and hence, after OpenAL wad closed, which causes crashes. Sentry-Id: FLIGHTGEAR-66
This commit is contained in:
parent
d252740307
commit
7597887e60
1 changed files with 6 additions and 1 deletions
|
@ -1100,8 +1100,13 @@ void fgCreateSubsystems(bool duringReset) {
|
|||
#ifdef ENABLE_IAX
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Initialize the FGCom subsystem.
|
||||
// very important this goes in the SOUND group, since IAXClient
|
||||
// depends on OpenAL, which is shutdown when the SOUND group
|
||||
// shutdown.
|
||||
// Sentry: FLIGHTGEAR-66
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
globals->add_subsystem("fgcom", new FGCom);
|
||||
globals->add_new_subsystem<FGCom>(SGSubsystemMgr::SOUND);
|
||||
#endif
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue