Commit 185b3036 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix startup crash on Wayland, thanks to login.kde@unrelenting.technology

BUG: 431505
parent ee7a141b
Pipeline #66457 passed with stage
in 8 minutes and 49 seconds
...@@ -122,7 +122,10 @@ GLWidget::GLWidget(int id, QObject *parent) ...@@ -122,7 +122,10 @@ GLWidget::GLWidget(int id, QObject *parent)
setPersistentSceneGraph(true); setPersistentSceneGraph(true);
setClearBeforeRendering(false); setClearBeforeRendering(false);
setResizeMode(QQuickView::SizeRootObjectToView); setResizeMode(QQuickView::SizeRootObjectToView);
m_offscreenSurface.setFormat(QOpenGLContext::globalShareContext()->format()); auto fmt = QOpenGLContext::globalShareContext()->format();
fmt.setDepthBufferSize(format().depthBufferSize());
fmt.setStencilBufferSize(format().stencilBufferSize());
m_offscreenSurface.setFormat(fmt);
m_offscreenSurface.create(); m_offscreenSurface.create();
m_refreshTimer.setSingleShot(true); 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