aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alExtension.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alExtension.c')
-rw-r--r--OpenAL32/alExtension.c11
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)