From b83e0fb03b5f8c0e89e3ac66e0711bf806d44b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Fri, 27 Dec 2024 13:07:42 +0100 Subject: [PATCH] Update appsupport.cpp --- src/core/appsupport.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/core/appsupport.cpp b/src/core/appsupport.cpp index f65498a93..01ab5b50f 100644 --- a/src/core/appsupport.cpp +++ b/src/core/appsupport.cpp @@ -976,8 +976,8 @@ void AppSupport::checkFFmpeg(const bool &isRenderer) void AppSupport::initEnv(const bool &isRenderer) { -#if defined(Q_OS_WIN) Q_UNUSED(isRenderer) +#if defined(Q_OS_WIN) // windows theme integration #if QT_VERSION < QT_VERSION_CHECK(6, 5, 0) // Set window title bar color based on dark/light theme @@ -988,14 +988,9 @@ void AppSupport::initEnv(const bool &isRenderer) if (registry.value("AppsUseLightTheme", 0).toInt() == 0) { qputenv("QT_QPA_PLATFORM", "windows:darkmode=1"); } #endif #elif defined(Q_OS_LINUX) - if (isRenderer) { // Force Mesa if Renderer - qputenv("LIBGL_ALWAYS_SOFTWARE", "1"); - } #ifdef PROJECT_OFFICIAL - qputenv("QT_QPA_PLATFORM", isRenderer ? "offscreen" : "xcb"); + qputenv("QT_QPA_PLATFORM", "xcb"); #endif -#else - Q_UNUSED(isRenderer) #endif }