Commit 482991a8 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Revert recent OpenGL change - it was not responsible for system crashes.

parent 558d1494
......@@ -120,7 +120,7 @@ GLWidget::GLWidget(int id, QObject *parent)
setPersistentSceneGraph(true);
setClearBeforeRendering(false);
setResizeMode(QQuickView::SizeRootObjectToView);
m_offscreenSurface.setFormat(QWindow::format());
m_offscreenSurface.setFormat(QOpenGLContext::globalShareContext()->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