Bläddra i källkod

X11: Fix OSMesa library not being unloaded

Camilla Löwy 3 år sedan
förälder
incheckning
a8d8b760fb
2 ändrade filer med 2 tillägg och 0 borttagningar
  1. 1 0
      README.md
  2. 1 0
      src/x11_init.c

+ 1 - 0
README.md

@@ -289,6 +289,7 @@ information on what to include when reporting a bug.
    (#379,#1281,#1285,#2033)
  - [X11] Bugfix: Dynamic loading on NetBSD failed due to soname differences
  - [X11] Bugfix: Left shift of int constant relied on undefined behavior (#1951)
+ - [X11] Bugfix: The OSMesa libray was not unloaded on termination
  - [Wayland] Added dynamic loading of all Wayland libraries
  - [Wayland] Added support for key names via xkbcommon
  - [Wayland] Added support for file path drop events (#2040)

+ 1 - 0
src/x11_init.c

@@ -1630,6 +1630,7 @@ void _glfwTerminateX11(void)
         _glfw.x11.xi.handle = NULL;
     }
 
+    _glfwTerminateOSMesa();
     // NOTE: These need to be unloaded after XCloseDisplay, as they register
     //       cleanup callbacks that get called by that function
     _glfwTerminateEGL();