From 7489dca295b671cc802347124b83196aa55e733b Mon Sep 17 00:00:00 2001 From: Phergus <34379254+Phergus@users.noreply.github.com> Date: Sat, 16 Oct 2021 15:03:12 -0600 Subject: [PATCH] Disable Direct3D use Disable Direct3D use by default to avoid weird graphic issues with some graphic cards/drivers. --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 5b583f4939..431b40a155 100644 --- a/build.gradle +++ b/build.gradle @@ -152,7 +152,7 @@ sourceSets { run { args = ['-v=' + appSemVer] - applicationDefaultJvmArgs = ["-Xss8M", "-Dsentry.environment=Development", "-Dfile.encoding=UTF-8", + applicationDefaultJvmArgs = ["-Xss8M", "-Dsun.java2d.d3d=false", "-Dsentry.environment=Development", "-Dfile.encoding=UTF-8", "-Dpolyglot.engine.WarnInterpreterOnly=false", "-DMAPTOOL_DATADIR=.maptool-" + vendor.toLowerCase(), "-XX:+ShowCodeDetailsInExceptionMessages", "--add-opens=java.desktop/java.awt=ALL-UNNAMED", "--add-opens=java.desktop/java.awt.geom=ALL-UNNAMED", @@ -204,7 +204,7 @@ runtime { jpackage { installerOutputDir = file("releases") - jvmArgs = ["-Xss8M", "-Dsentry.environment=Production", "-Dfile.encoding=UTF-8", + jvmArgs = ["-Xss8M", "-Dsun.java2d.d3d=false", "-Dsentry.environment=Production", "-Dfile.encoding=UTF-8", "-Dpolyglot.engine.WarnInterpreterOnly=false", "-DMAPTOOL_DATADIR=.maptool-" + vendor.toLowerCase(), "-XX:+ShowCodeDetailsInExceptionMessages", "--add-opens=java.desktop/java.awt=ALL-UNNAMED", "--add-opens=java.desktop/java.awt.geom=ALL-UNNAMED",