From a1d4bab077b82337462bcfcc941e0a98896f3c97 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sun, 28 May 2006 20:26:12 +0000 Subject: [PATCH] revert 1 small change SVN-Revision: 3600 --- src/audio/openal_sound_source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: "); } -- 2.11.0