diff options
author | Chris Robinson <[email protected]> | 2010-03-16 17:35:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-16 17:35:51 -0700 |
commit | f37cfc486d9f7ff84d21395f9135819f0b24f274 (patch) | |
tree | 64666af29c8814b8b8c53e4bf1d8a39cc562cb2a /OpenAL32/alExtension.c | |
parent | a337a59fb8c07b608944bff843b765656c56da64 (diff) |
Pass the context to alSetError
Diffstat (limited to 'OpenAL32/alExtension.c')
-rw-r--r-- | OpenAL32/alExtension.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenAL32/alExtension.c b/OpenAL32/alExtension.c index 3589ff63..7a227471 100644 --- a/OpenAL32/alExtension.c +++ b/OpenAL32/alExtension.c @@ -355,15 +355,16 @@ ALAPI ALboolean ALAPIENTRY alIsExtensionPresent(const ALchar *extName) const char *ptr; size_t len; - if (!extName) + pContext = GetContextSuspended(); + if(!pContext) return AL_FALSE; + + if(!extName) { - alSetError(AL_INVALID_VALUE); + alSetError(pContext, AL_INVALID_VALUE); + ProcessContext(pContext); return AL_FALSE; } - pContext = GetContextSuspended(); - if(!pContext) return AL_FALSE; - len = strlen(extName); ptr = pContext->ExtensionList; while(ptr && *ptr) |