From 56d9f90546365c9710417266f50b48b81c3b5f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 17 Nov 2016 13:42:30 +0100 Subject: [PATCH] Clean up egl/glx extensions in debug console Summary: As there is no difference between egl and glx extensions anymore inside KWin (both are provided through the OpenGLBackend) there is no need to have to group boxes and do a manual hide/show based on which platform is used. Instead there is now just one group box and it's called "Platform Extensions". Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D3400 --- debug_console.cpp | 12 +----------- debug_console.ui | 22 +++------------------- 2 files changed, 4 insertions(+), 30 deletions(-) diff --git a/debug_console.cpp b/debug_console.cpp index 5308c17a3f..91d2d8041c 100644 --- a/debug_console.cpp +++ b/debug_console.cpp @@ -550,18 +550,8 @@ void DebugConsole::initGLTab() text.append(QStringLiteral("")); return text; }; - if (gl->platformInterface() == EglPlatformInterface) { - m_ui->eglExtensionsBox->setVisible(true); - m_ui->glxExtensionsBox->setVisible(false); - - m_ui->eglExtensionsLabel->setText(extensionsString(static_cast(Compositor::self()->scene())->backend()->extensions())); - } else { - m_ui->eglExtensionsBox->setVisible(false); - m_ui->glxExtensionsBox->setVisible(true); - - m_ui->glxExtensionsLabel->setText(extensionsString(static_cast(Compositor::self()->scene())->backend()->extensions())); - } + m_ui->platformExtensionsLabel->setText(extensionsString(static_cast(Compositor::self()->scene())->backend()->extensions())); m_ui->openGLExtensionsLabel->setText(extensionsString(openGLExtensions())); } diff --git a/debug_console.ui b/debug_console.ui index 38ff6cdba8..c13be1881b 100644 --- a/debug_console.ui +++ b/debug_console.ui @@ -249,29 +249,13 @@ - + - EGL Extensions + Platform Extensions - - - - - - - - - - - - - GLX Extensions - - - - +