Wayland: Fix OSMesa library not being unloaded

(cherry picked from commit 2d281d7928)
This commit is contained in:
Camilla Löwy 2022-04-28 21:16:06 +02:00
parent 6d08e52bcf
commit 6dd9bf0bef
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -484,6 +484,8 @@ void _glfwPlatformTerminate(void)
_glfwTerminateJoysticksLinux();
#endif
_glfwTerminateEGL();
_glfwTerminateOSMesa();
if (_glfw.wl.egl.handle)
{
_glfw_dlclose(_glfw.wl.egl.handle);