restore some part of the code to prevent an untwanted segmentationf fault.

This commit is contained in:
ehofman
2009-10-18 13:55:21 +00:00
committed by Tim Moore
parent 7287509fef
commit b3bc36b253

View File

@@ -179,6 +179,8 @@ void SGSoundMgr::stop() {
_buffers.erase( buffers_current );
}
_context = alcGetCurrentContext();
_device = alcGetContextsDevice(_context);
alcDestroyContext(_context);
alcCloseDevice(_device);
}