@@ -672,12 +672,12 @@ int _glfwPlatformTerminate(void)
_glfwTerminateGammaRamp();
- terminateDisplay();
-
_glfwTerminateJoysticks();
_glfwTerminateOpenGL();
+ terminateDisplay();
+
// Free clipboard memory
if (_glfwLibrary.X11.selection.string)
free(_glfwLibrary.X11.selection.string);