diff --git a/plugins/quickinspector/quickinspector.cpp b/plugins/quickinspector/quickinspector.cpp index ccd5ebcecf..bc3dad64ca 100644 --- a/plugins/quickinspector/quickinspector.cpp +++ b/plugins/quickinspector/quickinspector.cpp @@ -302,15 +302,8 @@ void RenderModeRequest::apply() disconnect(connection); if (window) { - switch (window->rendererInterface()->graphicsApi()) { - // Compatible render interfaces - case QSGRendererInterface::Software: - case QSGRendererInterface::OpenVG: - case QSGRendererInterface::OpenGL: - break; - default: + if (window->rendererInterface()->graphicsApi() != QSGRendererInterface::OpenGL) return; - } emit aboutToCleanSceneGraph(); const QByteArray mode = renderModeToString(RenderModeRequest::mode);