Always enable opengl acceleration, no matter where.

This commit is contained in:
Jan Philipp Timme 2014-11-12 19:32:57 +01:00
parent c5b76fbdf9
commit 51038411fb

View File

@ -24,6 +24,8 @@ public class Main {
* @param args Command line arguments. * @param args Command line arguments.
*/ */
public static void main(String[] args) { 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 //Initialize the GameFrame properly within the AWT EventQueue
try { try {
EventQueue.invokeAndWait(new Runnable() { EventQueue.invokeAndWait(new Runnable() {