Skip to content

Commit

Permalink
Merge branch 'pthread-fix' into 'master'
Browse files Browse the repository at this point in the history
EGL/libeglcurrent: fix crash on library unload

See merge request glvnd/libglvnd!280
  • Loading branch information
kbrenneman committed Apr 4, 2023
2 parents 65c23a8 + 1f9aff1 commit 179d727
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EGL/libeglcurrent.c
Expand Up @@ -100,6 +100,8 @@ void __eglCurrentTeardown(EGLBoolean doReset)

if (doReset) {
__glvndPthreadFuncs.mutex_init(&currentStateListMutex, NULL);
} else {
__glvndPthreadFuncs.key_delete(threadStateKey);
}
}

Expand Down

0 comments on commit 179d727

Please sign in to comment.