// Destroy the OpenGL context // void _glfwDestroyContext(_GLFWwindow* window) { if (window->context.wgl.handle) { _glfw_wglDeleteContext(window->context.wgl.handle); window->context.wgl.handle = NULL; } }
// Destroy the OpenGL context // void _glfwDestroyContext(_GLFWwindow* window) { if (window->wgl.context) { _glfw_wglDeleteContext(window->wgl.context); window->wgl.context = NULL; } if (window->wgl.dc) { ReleaseDC(window->win32.handle, window->wgl.dc); window->wgl.dc = NULL; } }