aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alError.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alError.c')
-rw-r--r--OpenAL32/alError.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/OpenAL32/alError.c b/OpenAL32/alError.c
index f6c430a2..8435b426 100644
--- a/OpenAL32/alError.c
+++ b/OpenAL32/alError.c
@@ -40,15 +40,8 @@ ALAPI ALenum ALAPIENTRY alGetError(ALvoid)
return errorCode;
}
-ALvoid alSetError(ALenum errorCode)
+ALvoid alSetError(ALCcontext *Context, ALenum errorCode)
{
- ALCcontext *Context;
-
- Context = GetContextSuspended();
- if(Context)
- {
- if(Context->LastError == AL_NO_ERROR)
- Context->LastError = errorCode;
- ProcessContext(Context);
- }
+ if(Context->LastError == AL_NO_ERROR)
+ Context->LastError = errorCode;
}