src/glRenderer.cc

changeset 856
6bdc03091441
parent 855
e16f1587ef44
child 857
e62983881460
equal deleted inserted replaced
855:e16f1587ef44 856:6bdc03091441
235 235
236 // ============================================================================= 236 // =============================================================================
237 // 237 //
238 void GLRenderer::initializeGL() 238 void GLRenderer::initializeGL()
239 { 239 {
240 #ifdef USE_QT5
240 initializeOpenGLFunctions(); 241 initializeOpenGLFunctions();
242 #endif
241 setBackground(); 243 setBackground();
242 glLineWidth (cfg::LineThickness); 244 glLineWidth (cfg::LineThickness);
243 glLineStipple (1, 0x6666); 245 glLineStipple (1, 0x6666);
244 setAutoFillBackground (false); 246 setAutoFillBackground (false);
245 setMouseTracking (true); 247 setMouseTracking (true);
1619 } 1621 }
1620 1622
1621 void GLRenderer::doMakeCurrent() 1623 void GLRenderer::doMakeCurrent()
1622 { 1624 {
1623 makeCurrent(); 1625 makeCurrent();
1624
1625 #ifdef USE_QT5
1626 initializeOpenGLFunctions(); 1626 initializeOpenGLFunctions();
1627 #endif 1627 }
1628 }

mercurial