summaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-05-11 07:09:44 -0700
committerChris Robinson <[email protected]>2010-05-11 07:09:44 -0700
commit053aeee5d3ea7c820004526c7346287cf30f3e57 (patch)
tree04af8839bf416b33cb895ccb56ac0c170db89205 /Alc/ALc.c
parent1652dc02abe309b7f7eafca7d9a4f4f81744bc55 (diff)
Rename a variable
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;
}