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:
committed by
Chris Hennes
parent
633817ceac
commit
df2df0905d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user