aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-26 22:37:12 -0800
committerChris Robinson <[email protected]>2023-12-26 22:37:12 -0800
commit205a73876234c0b1363189306530ada73ece56f2 (patch)
tree185ccb4d06ba136e4fee84324c6f1102c184734d /al/buffer.cpp
parent1fddc044ac765d00e64628e59edcbcd71f0046b1 (diff)
Try to start being a bit more pointer-owner conscious
Diffstat (limited to 'al/buffer.cpp')
-rw-r--r--al/buffer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp
index e577e17a..c0f3f348 100644
--- a/al/buffer.cpp
+++ b/al/buffer.cpp
@@ -186,7 +186,8 @@ bool EnsureBuffers(ALCdevice *device, size_t needed)
device->BufferList.emplace_back();
auto sublist = device->BufferList.end() - 1;
sublist->FreeMask = ~0_u64;
- sublist->Buffers = static_cast<ALbuffer*>(al_calloc(alignof(ALbuffer), sizeof(ALbuffer)*64));
+ sublist->Buffers = static_cast<gsl::owner<ALbuffer*>>(al_calloc(alignof(ALbuffer),
+ sizeof(ALbuffer)*64));
if(!sublist->Buffers) UNLIKELY
{
device->BufferList.pop_back();