diff options
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index b833cb80..224ebce1 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2117,9 +2117,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) EffectState *state{slot->Effect.State.get()}; state->mOutTarget = device->Dry.Buffer; - state->deviceUpdate(device); - if(ALbuffer *buffer{slot->Buffer}) - state->setBuffer(device, buffer); + state->deviceUpdate(device, slot->Buffer); slot->updateProps(context); } @@ -2138,9 +2136,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) EffectState *state{slot->Effect.State.get()}; state->mOutTarget = device->Dry.Buffer; - state->deviceUpdate(device); - if(ALbuffer *buffer{slot->Buffer}) - state->setBuffer(device, buffer); + state->deviceUpdate(device, slot->Buffer); slot->updateProps(context); } } |