diff options
author | Chris Robinson <[email protected]> | 2009-12-28 23:29:49 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-12-28 23:29:49 -0800 |
commit | 7d7e5036039eb9a7283820d86dcd362f148a7237 (patch) | |
tree | 1956379a9e1993cb039c5c16b293f4d28b8a3d91 /Alc | |
parent | 7ee81eac0fd1ecd719c906cfc8fc9a81fcf0ffbe (diff) |
Properly retrieve device-inspecific errors
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |