diff options
author | Chris Robinson <[email protected]> | 2020-08-24 20:34:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-08-24 20:40:24 -0700 |
commit | a6bd53c4e1de084d93541f23d391154d7949b678 (patch) | |
tree | f33a98b0e978eaf14191806271fb883f95783a69 /al/event.cpp | |
parent | 1a9fbc1b2f7456f14e9cb74d95f4696cbe5c5af3 (diff) |
Store a reference to the effect buffer as an active property
Diffstat (limited to 'al/event.cpp')
-rw-r--r-- | al/event.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |