diff options
author | Chris Robinson <[email protected]> | 2011-09-11 04:32:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-11 04:32:34 -0700 |
commit | 2648a9b011ed7e032ff19376d06b9b60cae32614 (patch) | |
tree | a6462b3b2a7f3bd04475cfb9800893fbca87c3df /OpenAL32 | |
parent | 1fdc25df7551c2186704f47fd5eb19485f88edb4 (diff) |
Just reference the context when checking for extensions
Diffstat (limited to 'OpenAL32')
-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; } |