aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alError.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alError.c')
-rw-r--r--OpenAL32/alError.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenAL32/alError.c b/OpenAL32/alError.c
index a7ed84a2..0ffb5e6b 100644
--- a/OpenAL32/alError.c
+++ b/OpenAL32/alError.c
@@ -29,8 +29,7 @@ ALAPI ALenum ALAPIENTRY alGetError(ALvoid)
ALCcontext *Context;
ALenum errorCode;
- Context = alcGetCurrentContext();
- SuspendContext(Context);
+ Context = GetContextSuspended();
if (Context)
{
@@ -49,8 +48,7 @@ ALvoid alSetError(ALenum errorCode)
{
ALCcontext *Context;
- Context=alcGetCurrentContext();
- SuspendContext(Context);
+ Context=GetContextSuspended();
if (Context && Context->LastError == AL_NO_ERROR)
Context->LastError = errorCode;