GH-2026 only run versions with FirstThreadOnMacOS trait on first thread
This commit is contained in:
parent
c78498f40c
commit
a6a642eb7e
@ -298,10 +298,14 @@ QStringList MinecraftInstance::javaArguments() const
|
||||
args << "-Xdock:icon=icon.png";
|
||||
args << QString("-Xdock:name=\"%1\"").arg(windowTitle());
|
||||
#endif
|
||||
|
||||
auto traits = m_profile->getTraits();
|
||||
// HACK: fix issues on macOS with 1.13 snapshots
|
||||
// NOTE: Oracle Java option. if there are alternate jvm implementations, this would be the place to customize this for them
|
||||
#ifdef Q_OS_MAC
|
||||
if(traits.contains("FirstThreadOnMacOS"))
|
||||
{
|
||||
args << QString("-XstartOnFirstThread");
|
||||
}
|
||||
#endif
|
||||
|
||||
// HACK: Stupid hack for Intel drivers. See: https://mojang.atlassian.net/browse/MCL-767
|
||||
|
Loading…
Reference in New Issue
Block a user