使呈现上下文不是最新的

若要从线程中分离呈现上下文,请使其不是最新的。 为此,可以调用参数设置为 NULLwglMakeCurrent 函数。 下面是此简单任务的示例。

// detach the current rendering context from the thread  
wglMakeCurrent(NULL, NULL);