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/alError.c | |
parent | a337a59fb8c07b608944bff843b765656c56da64 (diff) |
Pass the context to alSetError
Diffstat (limited to 'OpenAL32/alError.c')
-rw-r--r-- | OpenAL32/alError.c | 13 |
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; } |