diff options
author | Chris Robinson <[email protected]> | 2020-12-27 00:14:58 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-27 00:14:58 -0800 |
commit | e20143fcc42e4a39b365b3f1395dfde94a30ac31 (patch) | |
tree | ab9324a678d0d4ea7316836da1629581538a9fa8 /alc/effectslot.cpp | |
parent | 507cbfa0271e6183a06c5b2eec3465bc37a108e5 (diff) |
Move the WetBuffer reference to EffectSlot
Diffstat (limited to 'alc/effectslot.cpp')
-rw-r--r-- | alc/effectslot.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/alc/effectslot.cpp b/alc/effectslot.cpp index f3324858..8abac248 100644 --- a/alc/effectslot.cpp +++ b/alc/effectslot.cpp @@ -5,6 +5,7 @@ #include <stddef.h> +#include "alcontext.h" #include "almalloc.h" @@ -16,3 +17,9 @@ EffectSlotArray *EffectSlot::CreatePtrArray(size_t count) noexcept void *ptr{al_calloc(alignof(EffectSlotArray), EffectSlotArray::Sizeof(count*2))}; return new(ptr) EffectSlotArray{count}; } + +EffectSlot::~EffectSlot() +{ + if(mWetBuffer) + mWetBuffer->mInUse = false; +} |