diff options
author | Chris Robinson <[email protected]> | 2022-02-13 21:00:28 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-13 21:00:57 -0800 |
commit | 3e6d210767e432c780f892b2365f3644456b61b3 (patch) | |
tree | 2f914604efa03749d87d42a8257864bf42ad21ba /al/source.cpp | |
parent | cdae6de6891f783fc5089ff82b9284f4a2c71e5b (diff) |
Avoid more unnecessary atomics
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |