Browse Source

Cocoa: Fix EGL and OSMesa not being unloaded

Camilla Löwy 3 years ago
parent
commit
89514cf0fc
2 changed files with 3 additions and 0 deletions
  1. 1 0
      README.md
  2. 2 0
      src/cocoa_init.m

+ 1 - 0
README.md

@@ -249,6 +249,7 @@ information on what to include when reporting a bug.
  - [Cocoa] Bugfix: `kIOMasterPortDefault` was deprecated in macOS 12.0 (#1980)
  - [Cocoa] Bugfix: `kIOMasterPortDefault` was deprecated in macOS 12.0 (#1980)
  - [Cocoa] Bugfix: `kUTTypeURL` was deprecated in macOS 12.0 (#2003)
  - [Cocoa] Bugfix: `kUTTypeURL` was deprecated in macOS 12.0 (#2003)
  - [Cocoa] Bugfix: A connected Apple AirPlay would emit a useless error (#1791)
  - [Cocoa] Bugfix: A connected Apple AirPlay would emit a useless error (#1791)
+ - [Cocoa] Bugfix: The EGL and OSMesa libraries were not unloaded on termination
  - [X11] Bugfix: The CMake files did not check for the XInput headers (#1480)
  - [X11] Bugfix: The CMake files did not check for the XInput headers (#1480)
  - [X11] Bugfix: Key names were not updated when the keyboard layout changed
  - [X11] Bugfix: Key names were not updated when the keyboard layout changed
    (#1462,#1528)
    (#1462,#1528)

+ 2 - 0
src/cocoa_init.m

@@ -676,6 +676,8 @@ void _glfwTerminateCocoa(void)
     _glfw_free(_glfw.ns.clipboardString);
     _glfw_free(_glfw.ns.clipboardString);
 
 
     _glfwTerminateNSGL();
     _glfwTerminateNSGL();
+    _glfwTerminateEGL();
+    _glfwTerminateOSMesa();
 
 
     } // autoreleasepool
     } // autoreleasepool
 }
 }