diff options
author | Chris Robinson <[email protected]> | 2017-03-23 19:32:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-03-23 19:32:53 -0700 |
commit | 1aca34468877feb07a2c05a23d4fdb8f41cecfd2 (patch) | |
tree | 4603c31f20f47f40fe8d4d5cda1c56374e08aa5f | |
parent | 1c49d0542d53133c1e023fc22ff5537ea3ca41aa (diff) |
Fix handling of the PropsClean flags
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 2 | ||||
-rw-r--r-- | OpenAL32/alSource.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 8fc62bde..65107287 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -683,7 +683,7 @@ void UpdateAllEffectSlotProps(ALCcontext *context) slot = ATOMIC_LOAD_SEQ(&context->ActiveAuxSlotList); while(slot) { - if(ATOMIC_FLAG_TEST_AND_SET(&slot->PropsClean, almemory_order_acq_rel)) + if(!ATOMIC_FLAG_TEST_AND_SET(&slot->PropsClean, almemory_order_acq_rel)) UpdateEffectSlotProps(slot); slot = ATOMIC_LOAD(&slot->next, almemory_order_relaxed); } diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index a882cb83..e18a00e2 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -3113,7 +3113,7 @@ void UpdateAllSourceProps(ALCcontext *context) { ALvoice *voice = context->Voices[pos]; ALsource *source = ATOMIC_LOAD(&voice->Source, almemory_order_acquire); - if(source != NULL && ATOMIC_FLAG_TEST_AND_SET(&source->PropsClean, almemory_order_acq_rel)) + if(source != NULL && !ATOMIC_FLAG_TEST_AND_SET(&source->PropsClean, almemory_order_acq_rel)) UpdateSourceProps(source, num_sends); } } |