Moved display closing to after GL terminate.

This commit is contained in:
Camilla Berglund 2012-09-12 21:25:52 +02:00
parent c4d5da0090
commit 1d6d6bc3c6

View File

@ -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);