master
Camilla Berglund ago%!(EXTRA string=10 years)
parent 22eca139fb
commit 8aaa6d2162
  1. 5
      src/x11_init.c

@ -787,8 +787,6 @@ void _glfwPlatformTerminate(void)
_glfw.x11.im = NULL; _glfw.x11.im = NULL;
} }
_glfwTerminateJoysticks();
if (_glfw.x11.display) if (_glfw.x11.display)
{ {
XCloseDisplay(_glfw.x11.display); XCloseDisplay(_glfw.x11.display);
@ -796,8 +794,9 @@ void _glfwPlatformTerminate(void)
} }
// NOTE: This needs to be done after XCloseDisplay, as libGL registers // NOTE: This needs to be done after XCloseDisplay, as libGL registers
// internal cleanup callbacks in libX11 // cleanup callbacks that get called by it
_glfwTerminateContextAPI(); _glfwTerminateContextAPI();
_glfwTerminateJoysticks();
} }
const char* _glfwPlatformGetVersionString(void) const char* _glfwPlatformGetVersionString(void)

Loading…
Cancel
Save