diff options
author | Chris Robinson <[email protected]> | 2020-11-21 00:54:25 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-11-21 00:54:25 -0800 |
commit | 21174047df620df3f094c05046f88efb6699122a (patch) | |
tree | 4fafe34a364c7950ce31fb154b70237e28244b32 /alc/alc.cpp | |
parent | 54afcbe113b532c8ef646ebad7cacb174b2f2511 (diff) |
Make ALbuffer inherit from BufferStorage
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |