aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-07-26 01:48:40 -0700
committerChris Robinson <[email protected]>2022-07-26 01:48:40 -0700
commitfdc0132f444f8a9e6cf17c0a3c1bddeddb74aa4d (patch)
tree45c35dc2bd529008da0306d6216df5489ce0b8a4 /al/auxeffectslot.cpp
parent7dcd2a86b8ff6c4f1a2872cea626d0d7a4adc269 (diff)
Mark the EffectSlot in use after getting one
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r--al/auxeffectslot.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index 0cfd6636..0f0a20f8 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -916,6 +916,7 @@ ALeffectslot::ALeffectslot(ALCcontext *context)
Effect.State = state;
mSlot = context->getEffectSlot();
+ mSlot->InUse = true;
mSlot->mEffectState = state.release();
}