summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-12-28 23:29:49 -0800
committerChris Robinson <[email protected]>2009-12-28 23:29:49 -0800
commit7d7e5036039eb9a7283820d86dcd362f148a7237 (patch)
tree1956379a9e1993cb039c5c16b293f4d28b8a3d91
parent7ee81eac0fd1ecd719c906cfc8fc9a81fcf0ffbe (diff)
Properly retrieve device-inspecific errors
-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;
}