aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-08-24 16:34:53 -0700
committerChris Robinson <[email protected]>2020-08-24 16:34:53 -0700
commit73ab9d46c88f034a32a6fb174e98fd23dec1ff98 (patch)
treeeb1bc6a757fc533369ee1fd74b14378d3033cf4d /alc
parentf9d6aa2f480a0d647e8ad901a5680c335ba4fa0c (diff)
Use an intrusive_ptr to hold the unapplied effect state
Diffstat (limited to 'alc')
-rw-r--r--alc/alc.cpp4
1 files changed, 2 insertions, 2 deletions
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);