From 52f82f0b9478d2eab72e74af6b63003cbd4cbc30 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 19 Mar 2010 14:53:32 -0700 Subject: [PATCH] Simplify removing the context handle from the device's context array --- Alc/ALc.c | 3 +-- 1 file changed, 1 insertion(+), 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; } } -- 2.11.4.GIT