aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-02 15:57:50 -0700
committerChris Robinson <[email protected]>2011-09-02 15:57:50 -0700
commit05114815baed650eb2f6930456c6fe3762f30cd7 (patch)
tree5fd6a128f43686ad5b3299d568dc3710e2546c7e
parent9080d5fda03d16143e2a446df72fe16d94a40c59 (diff)
Avoid an unnecessary lock
-rw-r--r--Alc/ALc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 6ce6feaa..627cc8c8 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2171,12 +2171,7 @@ ALC_API ALCcontext* ALC_APIENTRY alcGetCurrentContext(ALCvoid)
ALCcontext *Context;
Context = pthread_getspecific(LocalContext);
- if(!Context)
- {
- LockLists();
- Context = GlobalContext;
- UnlockLists();
- }
+ if(!Context) Context = GlobalContext;
return Context;
}