From 2648a9b011ed7e032ff19376d06b9b60cae32614 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 11 Sep 2011 04:32:34 -0700 Subject: Just reference the context when checking for extensions --- OpenAL32/alExtension.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenAL32/alExtension.c') 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; } -- cgit v1.2.3