From 7851f7d4ceff78f2722a4a2e3957c75dec26da1d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 5 Sep 2020 18:12:46 -0700 Subject: Don't add effect slots to the active list until an effect is set --- alc/alc.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'alc/alc.cpp') diff --git a/alc/alc.cpp b/alc/alc.cpp index c74c1ad8..a8ec407f 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2459,6 +2459,7 @@ void ALCcontext::init() { auxslots = ALeffectslot::CreatePtrArray(1); (*auxslots)[0] = mDefaultSlot.get(); + mDefaultSlot->mState = SlotState::Playing; } mActiveAuxSlots.store(auxslots, std::memory_order_relaxed); -- cgit v1.2.3