summaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 56a08e9e..2a3c9016 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -349,7 +349,7 @@ static tls_type LocalContext;
static ALCcontext *GlobalContext;
// Context Error
-static ALCenum g_eLastContextError = ALC_NO_ERROR;
+static ALCenum g_eLastNullDeviceError = ALC_NO_ERROR;
// Default context extensions
static const ALchar alExtList[] =
@@ -777,7 +777,7 @@ ALCvoid alcSetError(ALCdevice *device, ALenum errorCode)
if(IsDevice(device))
device->LastError = errorCode;
else
- g_eLastContextError = errorCode;
+ g_eLastNullDeviceError = errorCode;
}
@@ -1025,7 +1025,7 @@ ALC_API void ALC_APIENTRY alcCaptureSamples(ALCdevice *device, ALCvoid *buffer,
*/
ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device)
{
- ALCenum errorCode = ALC_NO_ERROR;
+ ALCenum errorCode;
if(IsDevice(device))
{
@@ -1034,8 +1034,8 @@ ALC_API ALCenum ALC_APIENTRY alcGetError(ALCdevice *device)
}
else
{
- errorCode = g_eLastContextError;
- g_eLastContextError = ALC_NO_ERROR;
+ errorCode = g_eLastNullDeviceError;
+ g_eLastNullDeviceError = ALC_NO_ERROR;
}
return errorCode;
}