From 256ea81dbe07f02d008908c90b99896f8eaaf2a5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 8 Feb 2022 20:43:05 -0800 Subject: Combine listener and context updates --- alc/context.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'alc/context.cpp') 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); -- cgit v1.2.3