diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2010-07-19 11:03:06 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2010-07-19 11:03:06 +0200 |
commit | d8bcc8f00b21a1292e628801edec1d2086d44112 (patch) | |
tree | 748652e6fedf13978a4cb0bafdca736c2a1ce167 | |
parent | be0e11511e9d082c24ae95c6da184e22fd75a521 (diff) |
Makes sure the correct context is active before rendering a frame.
-rw-r--r-- | ogrewidget.cpp | 1 |
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(); } |