Fix handling of the PropsClean flags
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user