diff options
-rw-r--r-- | OpenAL32/alError.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenAL32/alError.c b/OpenAL32/alError.c index c4c9f4dd..b30755d9 100644 --- a/OpenAL32/alError.c +++ b/OpenAL32/alError.c @@ -32,8 +32,7 @@ AL_API ALenum AL_APIENTRY alGetError(ALvoid) Context = GetLockedContext(); if(!Context) return AL_INVALID_OPERATION; - errorCode = Context->LastError; - Context->LastError = AL_NO_ERROR; + errorCode = Exchange_ALenum(&Context->LastError, AL_NO_ERROR); UnlockContext(Context); |