diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index 22c486da..4ff36eee 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -179,6 +179,8 @@ void SGSoundMgr::stop() { _buffers.erase( buffers_current ); } + _context = alcGetCurrentContext(); + _device = alcGetContextsDevice(_context); alcDestroyContext(_context); alcCloseDevice(_device); }