Update src/EGL/libeglcurrent.c

This commit is contained in:
Aidan Foster 2022-03-14 20:38:20 +00:00
parent 4834bd26e7
commit 1f2bfbb6f0
1 changed files with 2 additions and 2 deletions

View File

@ -94,9 +94,9 @@ void __eglCurrentTeardown(EGLBoolean doReset)
while (!glvnd_list_is_empty(&currentThreadStateList)) {
__EGLThreadAPIState *threadState = glvnd_list_first_entry(
&currentThreadStateList, __EGLThreadAPIState, entry);
__glvndPthreadFuncs.setspecific(threadStateKey, NULL);
DestroyThreadState(threadState);
DestroyThreadState(threadState);
}
__glvndPthreadFuncs.setspecific(threadStateKey, NULL);
if (doReset) {
__glvndPthreadFuncs.mutex_init(&currentStateListMutex, NULL);