From bbf9e6931cf607da49bb5a541e86f9760ea68047 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 24 Dec 2018 15:17:38 -0800 Subject: Propagate an effectslot target property --- OpenAL32/alAuxEffectSlot.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenAL32/alAuxEffectSlot.cpp') diff --git a/OpenAL32/alAuxEffectSlot.cpp b/OpenAL32/alAuxEffectSlot.cpp index ca279aee..4add1668 100644 --- a/OpenAL32/alAuxEffectSlot.cpp +++ b/OpenAL32/alAuxEffectSlot.cpp @@ -589,6 +589,10 @@ ALenum InitEffectSlot(ALeffectslot *slot) ALeffectslot::~ALeffectslot() { + if(Target) + DecrementRef(&Target->ref); + Target = nullptr; + struct ALeffectslotProps *props{Update.load()}; if(props) { @@ -621,6 +625,7 @@ void UpdateEffectSlotProps(ALeffectslot *slot, ALCcontext *context) /* Copy in current property values. */ props->Gain = slot->Gain; props->AuxSendAuto = slot->AuxSendAuto; + props->Target = slot->Target; props->Type = slot->Effect.Type; props->Props = slot->Effect.Props; -- cgit v1.2.3