Skip to content
Snippets Groups Projects
Commit 9e6c0c74 authored by Camilla Löwy's avatar Camilla Löwy
Browse files

X11: Fix segfault when using NVidia EGL

parent 8094a1c9
No related branches found
No related tags found
No related merge requests found
......@@ -218,6 +218,7 @@ information on what to include when reporting a bug.
- [X11] Bugfix: Incremental reading of selections was not supported (#275)
- [X11] Bugfix: Selection I/O reported but did not support `COMPOUND_TEXT`
- [X11] Bugfix: Latin-1 text read from selections was not converted to UTF-8
- [X11] Bugfix: NVidia EGL would segfault if unloaded before closing the display
- [Linux] Moved to evdev for joystick input (#906,#1005)
- [Linux] Bugfix: Event processing did not detect joystick disconnection (#932)
- [Linux] Bugfix: The joystick device path could be truncated (#1025)
......
......@@ -994,8 +994,6 @@ void _glfwPlatformTerminate(void)
_glfw.x11.im = NULL;
}
_glfwTerminateEGL();
if (_glfw.x11.display)
{
XCloseDisplay(_glfw.x11.display);
......@@ -1026,8 +1024,9 @@ void _glfwPlatformTerminate(void)
_glfw.x11.xinerama.handle = NULL;
}
// NOTE: This needs to be done after XCloseDisplay, as libGL registers
// cleanup callbacks that get called by it
// NOTE: These need to be unloaded after XCloseDisplay, as they register
// cleanup callbacks that get called by that function
_glfwTerminateEGL();
_glfwTerminateGLX();
#if defined(__linux__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment