Merge branch 'thread-state-to-null-in-teardown' into 'master'

Set current thread state to NULL in teardown

See merge request glvnd/libglvnd!264
This commit is contained in:
Kyle Brenneman 2022-03-21 20:27:20 +00:00
commit 5024e5796e
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ void __eglCurrentTeardown(EGLBoolean doReset)
__eglDestroyAPIState(apiState);
}
__glvndPthreadFuncs.setspecific(threadStateKey, NULL);
while (!glvnd_list_is_empty(&currentThreadStateList)) {
__EGLThreadAPIState *threadState = glvnd_list_first_entry(
&currentThreadStateList, __EGLThreadAPIState, entry);