예제 #1
0
파일: wgl_context.c 프로젝트: netcrack/glfw
// Destroy the OpenGL context
//
void _glfwDestroyContext(_GLFWwindow* window)
{
    if (window->context.wgl.handle)
    {
        _glfw_wglDeleteContext(window->context.wgl.handle);
        window->context.wgl.handle = NULL;
    }
}
예제 #2
0
// 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;
    }
}