两个OpenGL窗口的MFC程序
两个OGL窗口初始化完全相同,可是有一个总是在
void CPreviewWnd::OnDraw(CDC* /*pDC*/)
{
// TODO: Add your specialized code here and/or call the base class
***** wglMakeCurrent(m_pDC->m_hDC, m_hRC);
DrawPreScene();
wglMakeCurrent(m_pDC->m_hDC, NULL);
}
出错
这是什么原因?