Jelajahi Sumber

FINALLY THE AUDIO BUG HAS BEEN FIXED (fixes #5)

Bart van Strien 15 tahun lalu
induk
melakukan
08c0a68784
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      src/modules/audio/openal/Source.cpp

+ 3 - 0
src/modules/audio/openal/Source.cpp

@@ -277,6 +277,9 @@ namespace openal
 		alSourcef(source, AL_GAIN, volume);
 
 		alSourcePlay(source);
+
+		valid = true; //if it fails it will be set to false again
+		//but this prevents a horrible, horrible bug
 	}
 
 	void Source::stopAtomic()