From 7bf9ebf5450840c20d2453fcf7fc1f1b37f979ec Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 18 Dec 2007 23:51:21 -0800 Subject: Allow auxiliary effect slot 0 when (un)setting the source auxiliary send --- OpenAL32/alSource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenAL32/alSource.c') diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 8da9e9e1..5b40f7eb 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -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); -- cgit v1.2.3