Allow auxiliary effect slot 0 when (un)setting the source auxiliary send

This commit is contained in:
Chris Robinson 2007-12-18 23:51:21 -08:00
parent 1e9302f564
commit 7bf9ebf545

View File

@ -737,7 +737,8 @@ ALAPI void ALAPIENTRY alSource3i(ALuint source, ALenum eParam, ALint lValue1, AL
case AL_AUXILIARY_SEND_FILTER:
if(lValue2 >= 0 && lValue2 < MAX_SENDS &&
alIsAuxiliaryEffectSlot(lValue1) && alIsFilter(lValue3))
(alIsAuxiliaryEffectSlot(lValue1) || lValue1 == 0) &&
alIsFilter(lValue3))
{
ALeffectslot *ALEffectSlot = (ALeffectslot*)ALTHUNK_LOOKUPENTRY(lValue1);
ALfilter *ALFilter = (ALfilter*)ALTHUNK_LOOKUPENTRY(lValue3);