src/glRenderer.cc

changeset 856
6bdc03091441
parent 855
e16f1587ef44
child 857
e62983881460
--- 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
 }

mercurial