diff options
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index a8ec407f..8a89e8c2 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2102,10 +2102,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) state->mOutTarget = device->Dry.Buffer; state->deviceUpdate(device); if(ALbuffer *buffer{slot->Buffer}) - { - slot->Effect.Buffer = nullptr; - slot->Effect.Buffer.reset(state->createBuffer(device, buffer->mBuffer)); - } + state->setBuffer(device, &buffer->mBuffer); slot->updateProps(context); } @@ -2128,10 +2125,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) state->mOutTarget = device->Dry.Buffer; state->deviceUpdate(device); if(ALbuffer *buffer{slot->Buffer}) - { - slot->Effect.Buffer = nullptr; - slot->Effect.Buffer.reset(state->createBuffer(device, buffer->mBuffer)); - } + state->setBuffer(device, &buffer->mBuffer); slot->updateProps(context); } } |