diff options
author | Chris Robinson <[email protected]> | 2018-12-24 15:17:38 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-24 15:17:38 -0800 |
commit | bbf9e6931cf607da49bb5a541e86f9760ea68047 (patch) | |
tree | 54ca008453a162e55f2bcf8c130d6e2fc1151123 /OpenAL32/alAuxEffectSlot.cpp | |
parent | ae86aef4db02675ec64d690556905ea034753c87 (diff) |
Propagate an effectslot target property
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.cpp')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |