aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index ca13e911..cea1fb61 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -2325,15 +2325,11 @@ static ALvoid InitContext(ALCcontext *Context)
//Validate Context
if(!Context->DefaultSlot)
- auxslots = new ALeffectslotArray{};
+ auxslots = ALeffectslot::CreatePtrArray(0);
else
{
- /* Allocate twice as much space for effect slots so the mixer has a
- * place to sort them.
- */
- auxslots = new ALeffectslotArray{};
- auxslots->reserve(2);
- auxslots->push_back(Context->DefaultSlot.get());
+ auxslots = ALeffectslot::CreatePtrArray(1);
+ (*auxslots)[0] = Context->DefaultSlot.get();
}
Context->ActiveAuxSlots.store(auxslots, std::memory_order_relaxed);