aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-16 12:43:25 -0800
committerChris Robinson <[email protected]>2008-01-16 12:43:25 -0800
commit10a9bc62bf859ad3b97be9bda36fb0a737175774 (patch)
tree1ca86f060ddd4dbc1ad747c4b7afce18fdd89aa6 /OpenAL32/alSource.c
parent8cbbf17519193ddf8f49678a77e92088f5778d69 (diff)
Store a reference to the effect slot in a source's send, not a copy
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c8
1 files changed, 1 insertions, 7 deletions
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)
{