From 10a9bc62bf859ad3b97be9bda36fb0a737175774 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 16 Jan 2008 12:43:25 -0800 Subject: Store a reference to the effect slot in a source's send, not a copy --- OpenAL32/alSource.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'OpenAL32/alSource.c') diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 85db43c2..69da0df4 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -745,13 +745,7 @@ ALAPI void ALAPIENTRY alSource3i(ALuint source, ALenum eParam, ALint lValue1, AL ALeffectslot *ALEffectSlot = (ALeffectslot*)ALTHUNK_LOOKUPENTRY(lValue1); ALfilter *ALFilter = (ALfilter*)ALTHUNK_LOOKUPENTRY(lValue3); - if(!ALEffectSlot) - { - /* Disable slot */ - pSource->Send[lValue2].Slot.effectslot = 0; - } - else - memcpy(&pSource->Send[lValue2].Slot, ALEffectSlot, sizeof(*ALEffectSlot)); + pSource->Send[lValue2].Slot = ALEffectSlot; if(!ALFilter) { -- cgit v1.2.3