From: RĂ©mi Verschelde Date: Wed, 6 Sep 2017 12:11:30 +0000 (+0200) Subject: OpenAL: Fix dispose logic on Linux X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=commitdiff_plain;h=8f8250f231122f66e75fc83506dd51dbce948dd0 OpenAL: Fix dispose logic on Linux We no longer know what were the problems Ryan refers to, but the code seems to work just fine with recent OpenAL and solves this error: AL lib: (EE) alc_cleanup: 1 device not closed Might help with #98. --- diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp index a1e9603..85be118 100644 --- a/Source/GameInitDispose.cpp +++ b/Source/GameInitDispose.cpp @@ -88,16 +88,11 @@ void Dispose() OPENAL_StopSound(OPENAL_ALL); -// this is causing problems on Linux, but we'll force an _exit() a little -// later in the shutdown process. --ryan. -#if !PLATFORM_LINUX - for (int i = 0; i < sounds_count; ++i) { OPENAL_Sample_Free(samp[i]); } OPENAL_Close(); -#endif } void Game::newGame()