From 500ad776ea5bba13240cde84b2aa7c1caca77753 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 29 Aug 2011 20:34:47 -0700 Subject: Exchange the AL error when retrieving it --- OpenAL32/alError.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OpenAL32') 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); -- cgit v1.2.3