Skip to content

Commit

Permalink
chore: opengl
Browse files Browse the repository at this point in the history
  • Loading branch information
hstyi committed Feb 7, 2025
1 parent 25eb696 commit 4efe4e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,14 @@ tasks.register<Exec>("jpackage") {
"-Dapp-version=${project.version}",
)

options.add("-Dsun.java2d.metal=true")

if (os.isMacOsX) {
options.add("-Dsun.java2d.metal=true")
options.add("-Dapple.awt.application.appearance=system")
options.add("--add-opens java.desktop/sun.lwawt.macosx.concurrent=ALL-UNNAMED")
} else {
}

if (os.isLinux) {
options.add("-Dsun.java2d.opengl=true")
}

Expand Down

0 comments on commit 4efe4e5

Please sign in to comment.