aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-19 14:53:32 -0700
committerChris Robinson <[email protected]>2010-03-19 14:53:32 -0700
commit52f82f0b9478d2eab72e74af6b63003cbd4cbc30 (patch)
treed39a970d4f62144bc03bad217bdb540198b14d81 /Alc
parenta572b13743f62ed4dda5ed87bc259df0e581e023 (diff)
Simplify removing the context handle from the device's context array
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 8434d429..0caccd1b 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1405,8 +1405,7 @@ ALC_API ALCvoid ALC_APIENTRY alcDestroyContext(ALCcontext *context)
{
if(Device->Contexts[i] == context)
{
- memmove(&Device->Contexts[i], &Device->Contexts[i+1],
- (Device->NumContexts-i-1) * sizeof(*Device->Contexts));
+ Device->Contexts[i] = Device->Contexts[Device->NumContexts-1];
break;
}
}