diff options
author | Chris Robinson <[email protected]> | 2010-03-19 14:53:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-19 14:53:32 -0700 |
commit | 52f82f0b9478d2eab72e74af6b63003cbd4cbc30 (patch) | |
tree | d39a970d4f62144bc03bad217bdb540198b14d81 /Alc | |
parent | a572b13743f62ed4dda5ed87bc259df0e581e023 (diff) |
Simplify removing the context handle from the device's context array
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } } |