Avoid an unnecessary lock

This commit is contained in:
Chris Robinson 2011-09-02 15:57:50 -07:00
parent 9080d5fda0
commit 05114815ba

View File

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