diff options
author | Chris Robinson <[email protected]> | 2011-08-30 00:04:02 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-30 00:04:02 -0700 |
commit | d546813c05583dc083e11e6be4c38555e6561c18 (patch) | |
tree | bf5c13d2724d1beb196e8ba939641fe72188b3fa /OpenAL32/alAuxEffectSlot.c | |
parent | f02d9e22d755e69baab00f1d7ddceced6bac8136 (diff) |
Don't lock the context while checking the validity of objects
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index f34f4d09..4645ed2b 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -161,13 +161,13 @@ AL_API ALboolean AL_APIENTRY alIsAuxiliaryEffectSlot(ALuint effectslot) ALCcontext *Context; ALboolean result; - Context = GetLockedContext(); + Context = GetReffedContext(); if(!Context) return AL_FALSE; result = (LookupEffectSlot(Context->EffectSlotMap, effectslot) ? AL_TRUE : AL_FALSE); - UnlockContext(Context); + ALCcontext_DecRef(Context); return result; } |