aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-11 09:29:24 -0700
committerChris Robinson <[email protected]>2011-09-11 09:29:24 -0700
commitd9cb2baf4a99e691d63470f901cfb5c1fbb3e482 (patch)
tree3f1dbd6e9000598c6b6b4378b59cb73ca27c08ff /Alc
parent8f456f68ff15e3965ffdf579ed3f10bad996b594 (diff)
Don't increment the context reference count when locked
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index a6b5707e..cbbacaa2 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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