diff options
-rw-r--r-- | OpenAL32/alExtension.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenAL32/alExtension.c b/OpenAL32/alExtension.c index a986bc16..6ae38667 100644 --- a/OpenAL32/alExtension.c +++ b/OpenAL32/alExtension.c @@ -340,7 +340,7 @@ AL_API ALboolean AL_APIENTRY alIsExtensionPresent(const ALchar *extName) const char *ptr; size_t len; - Context = GetLockedContext(); + Context = GetContextRef(); if(!Context) return AL_FALSE; if(!extName) @@ -366,8 +366,7 @@ AL_API ALboolean AL_APIENTRY alIsExtensionPresent(const ALchar *extName) } } - UnlockContext(Context); - + ALCcontext_DecRef(Context); return bIsSupported; } |