From 8f8250f231122f66e75fc83506dd51dbce948dd0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 6 Sep 2017 14:11:30 +0200 Subject: [PATCH] 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. --- Source/GameInitDispose.cpp | 5 ----- 1 file changed, 5 deletions(-) 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() -- 2.39.5