Simplify removing the context handle from the device's context array

This commit is contained in:
Chris Robinson 2010-03-19 14:53:32 -07:00
parent a572b13743
commit 52f82f0b94

View File

@ -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;
}
}