From 585b0cf3bed7d1c5720633eb7e5358a9fca865f6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 6 Jun 2019 00:37:00 -0700 Subject: Remove the DEF_ALIGN macro --- OpenAL32/alSource.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index 6d4daecd..b2878b8e 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -1284,7 +1284,7 @@ ALboolean SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, co if(buffer != nullptr) { /* Add the selected buffer to a one-item queue */ - auto newlist = static_cast(al_calloc(DEF_ALIGN, + auto newlist = static_cast(al_calloc(alignof(void*), ALbufferlistitem::Sizeof(1u))); newlist->next.store(nullptr, std::memory_order_relaxed); newlist->max_samples = buffer->SampleLen; @@ -3185,13 +3185,13 @@ START_API_FUNC if(!BufferListStart) { - BufferListStart = static_cast(al_calloc(DEF_ALIGN, + BufferListStart = static_cast(al_calloc(alignof(void*), ALbufferlistitem::Sizeof(1u))); BufferList = BufferListStart; } else { - auto item = static_cast(al_calloc(DEF_ALIGN, + auto item = static_cast(al_calloc(alignof(void*), ALbufferlistitem::Sizeof(1u))); BufferList->next.store(item, std::memory_order_relaxed); BufferList = item; @@ -3290,7 +3290,7 @@ START_API_FUNC } std::unique_lock buflock{device->BufferLock}; - auto BufferListStart = static_cast(al_calloc(DEF_ALIGN, + auto BufferListStart = static_cast(al_calloc(alignof(void*), ALbufferlistitem::Sizeof(nb))); BufferList = BufferListStart; BufferList->next.store(nullptr, std::memory_order_relaxed); -- cgit v1.2.3