diff --git a/debug_console.cpp b/debug_console.cpp index 48e152919e..f57d3f0c7f 100644 --- a/debug_console.cpp +++ b/debug_console.cpp @@ -516,12 +516,12 @@ DebugConsole::~DebugConsole() = default; void DebugConsole::initGLTab() { - GLPlatform *gl = GLPlatform::instance(); - if (!gl) { + if (!effects || !effects->isOpenGLCompositing()) { m_ui->noOpenGLLabel->setVisible(true); m_ui->glInfoScrollArea->setVisible(false); return; } + GLPlatform *gl = GLPlatform::instance(); m_ui->noOpenGLLabel->setVisible(false); m_ui->glInfoScrollArea->setVisible(true); m_ui->glVendorStringLabel->setText(QString::fromLocal8Bit(gl->glVendorString()));