From: Matthias Braun Date: Sun, 28 May 2006 20:26:12 +0000 (+0000) Subject: revert 1 small change X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a1d4bab077b82337462bcfcc941e0a98896f3c97;p=supertux.git revert 1 small change SVN-Revision: 3600 --- diff --git a/src/audio/openal_sound_source.cpp b/src/audio/openal_sound_source.cpp index e5c586188..252cc6ee5 100644 --- a/src/audio/openal_sound_source.cpp +++ b/src/audio/openal_sound_source.cpp @@ -31,7 +31,6 @@ OpenALSoundSource::OpenALSoundSource() OpenALSoundSource::~OpenALSoundSource() { stop(); - alSourcei(source, AL_BUFFER, AL_NONE); alDeleteSources(1, &source); } @@ -39,6 +38,7 @@ void OpenALSoundSource::stop() { alSourceStop(source); + alSourcei(source, AL_BUFFER, AL_NONE); SoundManager::check_al_error("Problem stopping audio source: "); }