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
1 changed files with 2 additions and 0 deletions

View File

@ -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() {