Commit ef8f85f6 authored by David Edmundson's avatar David Edmundson

Drop outdated check for GL errors

This existed before QQuickWindow::sceneGraphError which ShellCorona
currently connects to.

This code is now redundant
parent a30da874
......@@ -64,18 +64,6 @@ DesktopView::DesktopView(Plasma::Corona *corona, QScreen *targetScreen)
this, &DesktopView::candidateContainmentsChanged);
QObject::connect(m_activityController, &KActivities::Controller::activityRemoved,
this, &DesktopView::candidateContainmentsChanged);
if (rendererInterface()->graphicsApi() != QSGRendererInterface::Software) {
connect(this, &DesktopView::sceneGraphInitialized, this,
[this, corona]() {
// check whether the GL Context supports OpenGL
// Note: hasOpenGLShaderPrograms is broken, see QTBUG--39730
if (!QOpenGLShaderProgram::hasOpenGLShaderPrograms(openglContext())) {
qWarning() << "GLSL not available, Plasma won't be functional";
QMetaObject::invokeMethod(corona, "glInitializationFailed", Qt::QueuedConnection);
}
}, Qt::DirectConnection);
}
}
DesktopView::~DesktopView()
......
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