现在的位置: 首页 > 综合 > 正文

OpenGL: 初始化代码必须放在ShowWindow()之前

2012年12月29日 ⁄ 综合 ⁄ 共 203字 ⁄ 字号 评论关闭

 // Must before ShowWindow() is called, otherwise fail in release mode
 mOpenGlPainter.Init(hWnd);
 mOpenGlPainter.Resize();
 
 // Display the window
 ShowWindow(hWnd, nCmdShow);
 UpdateWindow(hWnd);

 

否则Release模式会间断性出错, 不知为什么

抱歉!评论已关闭.