diff options
author | Chris Robinson <[email protected]> | 2022-02-08 20:43:05 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-08 20:43:05 -0800 |
commit | 256ea81dbe07f02d008908c90b99896f8eaaf2a5 (patch) | |
tree | e58348ee7808310f7c231934b91ad399c3af4d62 /alc/context.cpp | |
parent | de87cc98d5eef40eeb565b781ac90c1c6f55b42e (diff) |
Combine listener and context updates
Diffstat (limited to 'alc/context.cpp')
-rw-r--r-- | alc/context.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/alc/context.cpp b/alc/context.cpp index 525d4a5f..f24282f8 100644 --- a/alc/context.cpp +++ b/alc/context.cpp @@ -259,8 +259,6 @@ void ALCcontext::applyAllUpdates() if(mPropsDirty.test_and_clear(std::memory_order_acq_rel)) UpdateContextProps(this); - if(mListener.mPropsDirty.test_and_clear(std::memory_order_acq_rel)) - UpdateListenerProps(this); UpdateAllEffectSlotProps(this); UpdateAllSourceProps(this); @@ -948,7 +946,7 @@ void ALCcontext::eax_set_primary_fx_slot_id() void ALCcontext::eax_set_distance_factor() { mListener.mMetersPerUnit = eax_.context.flDistanceFactor; - mListener.mPropsDirty.set(std::memory_order_release); + mPropsDirty.set(std::memory_order_release); } void ALCcontext::eax_set_air_absorbtion_hf() @@ -1333,8 +1331,6 @@ void ALCcontext::eax_set( if(mPropsDirty.test_and_clear(std::memory_order_acq_rel)) UpdateContextProps(this); - if(mListener.mPropsDirty.test_and_clear(std::memory_order_acq_rel)) - UpdateListenerProps(this); UpdateAllSourceProps(this); mHoldUpdates.store(false, std::memory_order_release); |