Przeglądaj źródła

Moved display closing to after GL terminate.

Camilla Berglund 13 lat temu
rodzic
commit
1d6d6bc3c6
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/x11_init.c

+ 2 - 2
src/x11_init.c

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