From df2df0905dd17ed95b8db8729782c0aa7df96070 Mon Sep 17 00:00:00 2001 From: Bas Ruigrok Date: Mon, 15 Sep 2025 18:03:21 +0200 Subject: [PATCH] Don't inform Coin to use EGL for Coin 4.0.6+ Coin figures it out automatically starting from 4.0.6. Only for Coin 4.0.4 and 4.0.5 it is needed to explicitly tell Coin to use EGL. --- src/Gui/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index 2cac0bcbfd..9166183fab 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -2389,7 +2389,7 @@ void Application::runApplication() int argc = App::Application::GetARGC(); GUISingleApplication mainApp(argc, App::Application::GetARGV()); -#if defined(FC_OS_LINUX) || defined(FC_OS_BSD) +#if (COIN_MAJOR_VERSION * 100 + COIN_MINOR_VERSION * 10 + COIN_MICRO_VERSION < 406) && (defined(FC_OS_LINUX) || defined(FC_OS_BSD)) // If QT is running with native Wayland then inform Coin to use EGL if (QGuiApplication::platformName() == QString::fromStdString("wayland")) { setenv("COIN_EGL", "1", 1);