Use AL_BUFFERS_QUEUED at stream shutdown.

This commit is contained in:
Yamagi Burmeister 2012-05-26 12:03:01 +02:00
parent 492b7c1a2b
commit e9605e8a8b

View file

@ -444,7 +444,7 @@ static void S_AL_StreamDie( void )
qalSourceStop(streamSource);
// Un-queue any buffers, and delete them
qalGetSourcei( streamSource, AL_BUFFERS_PROCESSED, &numBuffers );
qalGetSourcei( streamSource, AL_BUFFERS_QUEUED, &numBuffers );
while( numBuffers-- )
{
ALuint buffer;