aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-07 08:47:55 -0800
committerChris Robinson <[email protected]>2022-02-07 08:47:55 -0800
commitb09aab8426b0feb74cacb8704b4953b3b56a8c30 (patch)
tree3ebbf942a85bacd4ac6e1f2314774ccf448c4b9b /alc/alc.cpp
parent4f7799f1aecc3eadaaea8e770797124f85aac5e4 (diff)
Don't pass an ALeffect to ALeffectslot::initEffect
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 4effcc67..3af6f8ec 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -3052,7 +3052,9 @@ START_API_FUNC
if(ALeffectslot *slot{context->mDefaultSlot.get()})
{
- if(slot->initEffect(&ALCcontext::sDefaultEffect, context.get()) == AL_NO_ERROR)
+ ALenum sloterr{slot->initEffect(ALCcontext::sDefaultEffect.type,
+ ALCcontext::sDefaultEffect.Props, context.get())};
+ if(sloterr == AL_NO_ERROR)
slot->updateProps(context.get());
else
ERR("Failed to initialize the default effect\n");