revert 1 small change
authorMatthias Braun <matze@braunis.de>
Sun, 28 May 2006 20:26:12 +0000 (20:26 +0000)
committerMatthias Braun <matze@braunis.de>
Sun, 28 May 2006 20:26:12 +0000 (20:26 +0000)
SVN-Revision: 3600

src/audio/openal_sound_source.cpp

index e5c5861..252cc6e 100644 (file)
@@ -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: ");
 }