diff options
author | Chris Robinson <[email protected]> | 2022-02-07 08:47:55 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-07 08:47:55 -0800 |
commit | b09aab8426b0feb74cacb8704b4953b3b56a8c30 (patch) | |
tree | 3ebbf942a85bacd4ac6e1f2314774ccf448c4b9b /alc | |
parent | 4f7799f1aecc3eadaaea8e770797124f85aac5e4 (diff) |
Don't pass an ALeffect to ALeffectslot::initEffect
Diffstat (limited to 'alc')
-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"); |