aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-11-21 00:54:25 -0800
committerChris Robinson <[email protected]>2020-11-21 00:54:25 -0800
commit21174047df620df3f094c05046f88efb6699122a (patch)
tree4fafe34a364c7950ce31fb154b70237e28244b32 /al/auxeffectslot.cpp
parent54afcbe113b532c8ef646ebad7cacb174b2f2511 (diff)
Make ALbuffer inherit from BufferStorage
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r--al/auxeffectslot.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index 3b7a45fd..46f68374 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -583,7 +583,7 @@ START_API_FUNC
{
buffer = LookupBuffer(device, static_cast<ALuint>(value));
if(!buffer) SETERR_RETURN(context, AL_INVALID_VALUE,, "Invalid buffer ID");
- if(buffer->mBuffer.mCallback)
+ if(buffer->mCallback)
SETERR_RETURN(context, AL_INVALID_OPERATION,,
"Callback buffer not valid for effects");
@@ -596,7 +596,7 @@ START_API_FUNC
FPUCtl mixer_mode{};
auto *state = slot->Effect.State.get();
- state->setBuffer(device, buffer ? &buffer->mBuffer : nullptr);
+ state->setBuffer(device, buffer);
}
break;
@@ -878,7 +878,7 @@ ALenum ALeffectslot::initEffect(ALeffect *effect, ALCcontext *context)
FPUCtl mixer_mode{};
State->deviceUpdate(Device);
if(Buffer)
- State->setBuffer(Device, &Buffer->mBuffer);
+ State->setBuffer(Device, Buffer);
}
if(!effect)