--- a/src/glRenderer.cc Mon Jul 28 03:34:05 2014 +0300 +++ b/src/glRenderer.cc Mon Jul 28 16:38:34 2014 +0300 @@ -237,7 +237,9 @@ // void GLRenderer::initializeGL() { +#ifdef USE_QT5 initializeOpenGLFunctions(); +#endif setBackground(); glLineWidth (cfg::LineThickness); glLineStipple (1, 0x6666); @@ -1621,8 +1623,5 @@ void GLRenderer::doMakeCurrent() { makeCurrent(); - -#ifdef USE_QT5 initializeOpenGLFunctions(); -#endif }