diff options
author | Chris Robinson <[email protected]> | 2023-03-11 12:16:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-03-11 12:16:32 -0800 |
commit | 1e226fd54dc6670222ce1210cf55fe1b4d61e89c (patch) | |
tree | b72c4cc990cdabcd0b4b475c57f809a1405bc329 /al/auxeffectslot.cpp | |
parent | 64ead7d36de7dc748414530121b69876a0c84e05 (diff) |
Don't commit EAX updates in applyAllUpdates
To avoid alcProcessContext causing deferred EAX properties to be committed.
This simplifies updates when EAX has been initialized, but never or rarely
used.
Committing now always occurs in EAXSet when the property is non-deferred,
updating the OpenAL object(s) with it (with OpenAL's updates then being applied
based on the context's defer state).
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r-- | al/auxeffectslot.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index 3e755569..dc6e1cfb 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -1013,10 +1013,6 @@ void ALeffectslot::updateProps(ALCcontext *context) void UpdateAllEffectSlotProps(ALCcontext *context) { std::lock_guard<std::mutex> _{context->mEffectSlotLock}; -#ifdef ALSOFT_EAX - if(context->has_eax()) - context->eax_commit_fx_slots(); -#endif for(auto &sublist : context->mEffectSlotList) { uint64_t usemask{~sublist.FreeMask}; |