Properly retrieve device-inspecific errors

This commit is contained in:
Chris Robinson
2009-12-28 23:29:49 -08:00
parent 7ee81eac0f
commit 7d7e503603
+5
View File
@@ -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;
}