diff --git a/README.md b/README.md index 275b6327..dc051fd2 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,7 @@ information on what to include when reporting a bug. - [Wayland] Bugfix: Some errors would cause clipboard string transfer to hang - [Wayland] Bugfix: Drag and drop data was misinterpreted as clipboard string - [Wayland] Bugfix: MIME type matching was not performed for clipboard string + - [Wayland] Bugfix: The OSMesa library was not unloaded on termination ## Contact diff --git a/src/wl_init.c b/src/wl_init.c index ad10aa60..9126ec06 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -484,6 +484,8 @@ void _glfwPlatformTerminate(void) _glfwTerminateJoysticksLinux(); #endif _glfwTerminateEGL(); + _glfwTerminateOSMesa(); + if (_glfw.wl.egl.handle) { _glfw_dlclose(_glfw.wl.egl.handle);