From 73ab9d46c88f034a32a6fb174e98fd23dec1ff98 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 24 Aug 2020 16:34:53 -0700 Subject: Use an intrusive_ptr to hold the unapplied effect state --- alc/alc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc') diff --git a/alc/alc.cpp b/alc/alc.cpp index edefe9a1..75f809de 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2095,7 +2095,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) { aluInitEffectPanning(slot, device); - EffectState *state{slot->Effect.State}; + EffectState *state{slot->Effect.State.get()}; state->mOutTarget = device->Dry.Buffer; state->deviceUpdate(device); slot->updateProps(context); @@ -2116,7 +2116,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) aluInitEffectPanning(slot, device); - EffectState *state{slot->Effect.State}; + EffectState *state{slot->Effect.State.get()}; state->mOutTarget = device->Dry.Buffer; state->deviceUpdate(device); slot->updateProps(context); -- cgit v1.2.3