Skip to content

Commit

Permalink
Merge pull request #351 from scenerygraphics/linux-java8-opengl-force
Browse files Browse the repository at this point in the history
Remove the forced use of OpenGLRenderer on java8
  • Loading branch information
kephale authored Jan 28, 2021
2 parents e597bd7 + ba5ff17 commit 311d92a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/main/java/sc/iview/ui/SwingMainWindow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,6 @@ class SwingMainWindow(val sciview: SciView) : MainWindow {
System.err.println("Failed to initialize Flat Light LaF, falling back to Swing default.")
}

// TODO: check for jdk 8 v. jdk 11 on linux and choose renderer accordingly
if (Platform.get() === Platform.LINUX) {
var version = System.getProperty("java.version")
if (version.startsWith("1.")) {
version = version.substring(2, 3)
} else {
val dot = version.indexOf(".")
if (dot != -1) {
version = version.substring(0, dot)
}
}

// If Linux and JDK 8, then use OpenGLRenderer
if (version == "8") System.setProperty("scenery.Renderer", "OpenGLRenderer")
}
var x: Int
var y: Int
try {
Expand Down

0 comments on commit 311d92a

Please sign in to comment.