【发布时间】:2014-09-07 11:43:08
【问题描述】:
我正在使用 Qt 和 OGRE 创建一个应用程序。我遵循了本教程:http://www.ogre3d.org/tikiwiki/QtOgre。
我在运行应用程序时得到以下输出窗口:
图像显示了背景窗口的剪辑部分。
以下代码在运行时出错:
void THIS::paintGL()
{
// Be sure to call "OgreWidget->repaint();" to call paintGL
swapBuffers();
assert( mOgreWindow );
mOgreRoot->renderOneFrame();
}
错误是:
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
我该如何解决这个问题?
【问题讨论】: