From 3e6d210767e432c780f892b2365f3644456b61b3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 13 Feb 2022 21:00:28 -0800 Subject: Avoid more unnecessary atomics --- al/source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'al/source.cpp') diff --git a/al/source.cpp b/al/source.cpp index 08b8246b..e363b0da 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -1130,7 +1130,7 @@ void SetSourcei64v(ALsource *Source, ALCcontext *Context, SourceProp prop, const void UpdateSourceProps(ALsource *source, ALCcontext *context) { - if(!context->mDeferUpdates.load(std::memory_order_acquire)) + if(!context->mDeferUpdates) { if(Voice *voice{GetSourceVoice(source, context)}) { @@ -1143,7 +1143,7 @@ void UpdateSourceProps(ALsource *source, ALCcontext *context) #ifdef ALSOFT_EAX void CommitAndUpdateSourceProps(ALsource *source, ALCcontext *context) { - if(!context->mDeferUpdates.load(std::memory_order_acquire)) + if(!context->mDeferUpdates) { if(source->eax_is_initialized()) source->eax_commit(); -- cgit v1.2.3