From 21174047df620df3f094c05046f88efb6699122a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 21 Nov 2020 00:54:25 -0800 Subject: Make ALbuffer inherit from BufferStorage --- alc/alc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/alc.cpp') diff --git a/alc/alc.cpp b/alc/alc.cpp index 073fe6bf..075f0534 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2160,7 +2160,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) state->mOutTarget = device->Dry.Buffer; state->deviceUpdate(device); if(ALbuffer *buffer{slot->Buffer}) - state->setBuffer(device, &buffer->mBuffer); + state->setBuffer(device, buffer); slot->updateProps(context); } @@ -2181,7 +2181,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) state->mOutTarget = device->Dry.Buffer; state->deviceUpdate(device); if(ALbuffer *buffer{slot->Buffer}) - state->setBuffer(device, &buffer->mBuffer); + state->setBuffer(device, buffer); slot->updateProps(context); } } -- cgit v1.2.3