Don't increment the context reference count when locked

This commit is contained in:
Chris Robinson
2011-09-11 09:29:24 -07:00
parent 8f456f68ff
commit d9cb2baf4a
-2
View File
@@ -1556,14 +1556,12 @@ static void ReleaseThreadCtx(void *ptr)
ALCvoid LockContext(ALCcontext *context)
{
ALCcontext_IncRef(context);
EnterCriticalSection(&context->Device->Mutex);
}
ALCvoid UnlockContext(ALCcontext *context)
{
LeaveCriticalSection(&context->Device->Mutex);
ALCcontext_DecRef(context);
}
/* GetContextRef