summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2010-07-19 11:03:06 +0200
committerYoann Lopes <yoann.lopes@nokia.com>2010-07-19 11:03:06 +0200
commitd8bcc8f00b21a1292e628801edec1d2086d44112 (patch)
tree748652e6fedf13978a4cb0bafdca736c2a1ce167
parentbe0e11511e9d082c24ae95c6da184e22fd75a521 (diff)
Makes sure the correct context is active before rendering a frame.
-rw-r--r--ogrewidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ogrewidget.cpp b/ogrewidget.cpp
index f0d0bdf..81edd0c 100644
--- a/ogrewidget.cpp
+++ b/ogrewidget.cpp
@@ -117,6 +117,7 @@ void OgreWidget::paintGL()
void OgreWidget::timerEvent(QTimerEvent *e)
{
Q_UNUSED(e)
+ makeCurrent();
paintGL();
swapBuffers();
}