diff options
author | Chris Robinson <[email protected]> | 2018-01-28 17:56:47 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-28 17:56:47 -0800 |
commit | a24a22c39aa3ee474197f4f9b12e4351fc836b39 (patch) | |
tree | e28626de4ad902ff918f05d5e8a3504f78888e3c | |
parent | c2710ffe87dae7d292e77ed9663783e9d5c227dc (diff) |
Fix the effect slot limit check
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index cd028bb0..5400a914 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -119,7 +119,7 @@ AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslo device = context->Device; LockEffectSlotList(context); - if(device->AuxiliaryEffectSlotMax - VECTOR_SIZE(context->EffectSlotList) > (ALuint)n) + if(device->AuxiliaryEffectSlotMax - VECTOR_SIZE(context->EffectSlotList) < (ALuint)n) { UnlockEffectSlotList(context); SETERR_GOTO(context, AL_OUT_OF_MEMORY, done, "Exceeding %u auxiliary effect slot limit", |