From 51038411fb1602e224d16fa8d81d8752c3f2a345 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Wed, 12 Nov 2014 19:32:57 +0100 Subject: [PATCH] Always enable opengl acceleration, no matter where. --- src/de/teamteamteam/spacescooter/Main.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/teamteamteam/spacescooter/Main.java b/src/de/teamteamteam/spacescooter/Main.java index fab4942..9a3d51d 100644 --- a/src/de/teamteamteam/spacescooter/Main.java +++ b/src/de/teamteamteam/spacescooter/Main.java @@ -24,6 +24,8 @@ public class Main { * @param args Command line arguments. */ public static void main(String[] args) { + //Make sure opengl acceleration is used + System.setProperty("sun.java2d.opengl", "True"); //Initialize the GameFrame properly within the AWT EventQueue try { EventQueue.invokeAndWait(new Runnable() {