From a6bd53c4e1de084d93541f23d391154d7949b678 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 24 Aug 2020 20:34:50 -0700 Subject: Store a reference to the effect buffer as an active property --- al/event.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'al/event.cpp') diff --git a/al/event.cpp b/al/event.cpp index cd8ea7c2..6c004ef3 100644 --- a/al/event.cpp +++ b/al/event.cpp @@ -60,6 +60,11 @@ static int EventThread(ALCcontext *context) evt.u.mEffectState->release(); continue; } + if(evt.EnumType == EventType_ReleaseEffectBuffer) + { + evt.u.mEffectBuffer->release(); + continue; + } ALbitfieldSOFT enabledevts{context->mEnabledEvts.load(std::memory_order_acquire)}; if(!context->mEventCb) continue; -- cgit v1.2.3