Do not use openGL backed canvas + widgets on Catalina

This needs testing: local builds on Catalina vs.
running existing (10.6, 10.11) builds on 10.15.
This commit is contained in:
Robin Gareus 2020-03-24 14:27:36 +01:00
parent 853bf6d178
commit 6ddeaa273a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 7 additions and 0 deletions

View File

@ -99,6 +99,13 @@ fixup_bundle_environment (int argc, char* argv[], string & localedir)
setup_logging ();
}
if (query_darwin_version () >= 19) {
/* on Catalina, do not use NSGLView */
g_setenv ("ARDOUR_NSGL", "0", 0);
} else {
g_setenv ("ARDOUR_NSGL", "1", 0);
}
no_app_nap ();
if (!g_getenv ("ARDOUR_BUNDLED")) {