aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-04-19 18:45:46 -0700
committerChris Robinson <[email protected]>2021-04-19 18:45:46 -0700
commit22818b3e8399985e3174583cfaba6cb4436d7010 (patch)
treef41ff69eb269795d92c80833aebd6b0152cd581e /al
parent4754c606023e2028be472e8246d659be49a469e5 (diff)
Force an effect slot update when implicitly starting
Diffstat (limited to 'al')
-rw-r--r--al/auxeffectslot.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index 150b346b..0b64f9da 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -587,8 +587,12 @@ START_API_FUNC
}
if UNLIKELY(slot->mState == SlotState::Initial)
{
+ slot->mPropsDirty.test_and_clear(std::memory_order_acq_rel);
+ slot->updateProps(context.get());
+
AddActiveEffectSlots({&slot, 1}, context.get());
slot->mState = SlotState::Playing;
+ return;
}
break;