aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-27 00:14:58 -0800
committerChris Robinson <[email protected]>2020-12-27 00:14:58 -0800
commite20143fcc42e4a39b365b3f1395dfde94a30ac31 (patch)
treeab9324a678d0d4ea7316836da1629581538a9fa8 /al/auxeffectslot.cpp
parent507cbfa0271e6183a06c5b2eec3465bc37a108e5 (diff)
Move the WetBuffer reference to EffectSlot
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r--al/auxeffectslot.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index e43ad4ad..efc1bb2e 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -277,7 +277,7 @@ ALeffectslot *AllocEffectSlot(ALCcontext *context)
context->setError(err, "Effect slot object initialization failed");
return nullptr;
}
- aluInitEffectPanning(slot, context);
+ aluInitEffectPanning(&slot->mSlot, context);
/* Add 1 to avoid source ID 0. */
slot->id = ((lidx<<6) | slidx) + 1;
@@ -897,8 +897,6 @@ ALeffectslot::~ALeffectslot()
delete props;
}
- if(mWetBuffer)
- mWetBuffer->mInUse = false;
if(mSlot.mEffectState)
mSlot.mEffectState->release();
}