diff options
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 4 |
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"); |