Beispiel #1
0
// Terminate WGL
//
void _glfwTerminateContextAPI(void)
{
    if (_glfw.wgl.opengl32.instance)
        FreeLibrary(_glfw.wgl.opengl32.instance);

    _glfwDestroyContextTLS();
}
// Terminate GLX
//
void _glfwTerminateContextAPI(void)
{
    // NOTE: This function may not call any X11 functions, as it is called after
    //       XCloseDisplay (see _glfwPlatformTerminate for details)

    if (_glfw.glx.handle)
    {
        dlclose(_glfw.glx.handle);
        _glfw.glx.handle = NULL;
    }

    _glfwDestroyContextTLS();
}