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
-5
View File
@@ -528,11 +528,6 @@ int _glfwCreateContext(_GLFWwindow* window,
void _glfwDestroyContext(_GLFWwindow* window)
{
// This is duplicated from glfwDestroyWindow
// TODO: Stop duplicating code
if (window == _glfwCurrentWindow)
_glfwPlatformMakeContextCurrent(NULL);
if (window->WGL.context)
{
wglDeleteContext(window->WGL.context);