这是一个简单的代码,运行后可以玩呦voidDisableOpenGL(HWNDhwnd,HDChDC,HGLRChRC){wglMakeCurrent(NULL,NULL);wglDeleteContext(hRC);ReleaseDC(hwnd,hDC);}