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 }