Always enable opengl acceleration, no matter where.
This commit is contained in:
parent
c5b76fbdf9
commit
51038411fb
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue