Fix CGL context not being released until later

Fixes #721.
This commit is contained in:
Camilla Berglund
2016-03-18 12:01:48 +01:00
parent 6570d0c4b7
commit 17bcefeac1
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -1038,6 +1038,9 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window)
[window->ns.object close];
window->ns.object = nil;
[_glfw.ns.autoreleasePool drain];
_glfw.ns.autoreleasePool = [[NSAutoreleasePool alloc] init];
}
void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char *title)