aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-08-25 02:10:18 -0700
committerChris Robinson <[email protected]>2023-08-25 02:10:18 -0700
commit4b924e636b6e0651304b289a667d358d336d6d03 (patch)
tree0b55327958d5073175ccc1fbb07b26a93d69046e /alc/alc.cpp
parent84c1633f635ce870fe9556c267b1538ecbf1f0cd (diff)
Allow querying AL_EFFECTSLOT_EFFECT
This doesn't make much sense since the effect associated with the ID may be modified and not represent the effect being played, or was even deleted and isn't a valid effect ID, but Generic Software allows querying it so it should be queryable for compatibility if nothing else.
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 9dc99a5d..0c42edbc 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2728,7 +2728,7 @@ ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCin
if(ALeffectslot *slot{context->mDefaultSlot.get()})
{
- ALenum sloterr{slot->initEffect(ALCcontext::sDefaultEffect.type,
+ ALenum sloterr{slot->initEffect(0, ALCcontext::sDefaultEffect.type,
ALCcontext::sDefaultEffect.Props, context.get())};
if(sloterr == AL_NO_ERROR)
slot->updateProps(context.get());