aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2010-01-09 03:25:13 -0800
committerChris Robinson <chris.kcat@gmail.com>2010-01-09 03:25:13 -0800
commitd61f90a9c2e1fe6000759f2a157d906d9c38ede6 (patch)
tree52ddf73568731a870aa9560282f1239227d7606b
parent3d11fb219eda2b81253824ce5fb233ad05edf7da (diff)
Make sure the device handle is valid when getting the device error
-rw-r--r--Alc/ALc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index a9708e5d..57163414 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -766,7 +766,7 @@ ALCAPI ALCenum ALCAPIENTRY alcGetError(ALCdevice *device)
{
ALCenum errorCode = ALC_NO_ERROR;
- if(device)
+ if(IsDevice(device))
{
errorCode = device->LastError;
device->LastError = ALC_NO_ERROR;