I am creating an application using Qt and OGRE. I have followed this tutorial: http://www.ogre3d.org/tikiwiki/QtOgre.
I get the following output window on running the application:
The image shows a clipped portion of the background window.
The following code gives an error during runtime:
void THIS::paintGL()
{
// Be sure to call "OgreWidget->repaint();" to call paintGL
swapBuffers();
assert( mOgreWindow );
mOgreRoot->renderOneFrame();
}
The error is:
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
How do I solve this issue?