]> git.mxchange.org Git - simgear.git/commitdiff
restore some part of the code to prevent an untwanted segmentationf fault.
authorehofman <ehofman>
Sun, 18 Oct 2009 13:55:21 +0000 (13:55 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 18 Oct 2009 16:07:19 +0000 (18:07 +0200)
simgear/sound/soundmgr_openal.cxx

index 22c486daa3e1aec0c38b4594bcecc205d69dbc48..4ff36eee99597b16640a4432b01278188f1ec7a1 100644 (file)
@@ -179,6 +179,8 @@ void SGSoundMgr::stop() {
             _buffers.erase( buffers_current );
         }
 
+        _context = alcGetCurrentContext();
+        _device = alcGetContextsDevice(_context);
         alcDestroyContext(_context);
         alcCloseDevice(_device);
     }