Skip to content

Commit

Permalink
alSourceUnqueueBuffer() was looking at the wrong variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 31, 2018
1 parent 586201b commit e85af6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoal.c
Expand Up @@ -2658,7 +2658,7 @@ void alSourceUnqueueBuffers(ALuint name, ALsizei nb, ALuint *bufnames)
an obscenely large number of buffers to the processed queue. That is
to say: it's a pathological (and probably not ever real) scenario. */
SDL_AtomicLock(&src->buffer_queue_lock);
if (((ALsizei) SDL_AtomicGet(&src->buffer_queue.num_items)) < nb) {
if (((ALsizei) SDL_AtomicGet(&src->buffer_queue_processed.num_items)) < nb) {
SDL_AtomicUnlock(&src->buffer_queue_lock);
set_al_error(ctx, AL_INVALID_VALUE);
return;
Expand Down

0 comments on commit e85af6f

Please sign in to comment.