Cleanup of context clearing during window destruction.

This commit is contained in:
Camilla Berglund
2012-10-21 21:57:29 +02:00
parent b87157ccc1
commit 467d501621
5 changed files with 10 additions and 12 deletions
-3
View File
@@ -969,9 +969,6 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window)
[window->NSGL.pixelFormat release];
window->NSGL.pixelFormat = nil;
if ([NSOpenGLContext currentContext] == window->NSGL.context)
[NSOpenGLContext clearCurrentContext];
[window->NSGL.context release];
window->NSGL.context = nil;