aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-18 23:51:21 -0800
committerChris Robinson <[email protected]>2007-12-18 23:51:21 -0800
commit7bf9ebf5450840c20d2453fcf7fc1f1b37f979ec (patch)
treed1a354bbd304ad8bff4b251ed997e6df8b385ff8 /OpenAL32/alSource.c
parent1e9302f564bd63aef29cc509336c7b863e0968a6 (diff)
Allow auxiliary effect slot 0 when (un)setting the source auxiliary send
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c3
1 files changed, 2 insertions, 1 deletions
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);