aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 1ee820c6..b85c2d7e 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -764,6 +764,11 @@ ALCAPI ALCenum ALCAPIENTRY alcGetError(ALCdevice *device)
errorCode = device->LastError;
device->LastError = ALC_NO_ERROR;
}
+ else
+ {
+ errorCode = g_eLastContextError;
+ g_eLastContextError = ALC_NO_ERROR;
+ }
return errorCode;
}