Revert openGL change causing startup crash on some systems

parent 1f31b950
......@@ -120,7 +120,7 @@ GLWidget::GLWidget(int id, QObject *parent)
setPersistentSceneGraph(true);
setClearBeforeRendering(false);
setResizeMode(QQuickView::SizeRootObjectToView);
m_offscreenSurface.setFormat(QOpenGLContext::globalShareContext()->format());
m_offscreenSurface.setFormat(QWindow::format());
m_offscreenSurface.create();
m_refreshTimer.setSingleShot(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment