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.
This commit is contained in:
Bas Ruigrok
2025-09-15 18:03:21 +02:00
committed by Chris Hennes
parent de4bf34093
commit dbcd6912d0

View File

@@ -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);