OSDN Git Service

fixed issue 1329, LwjglCanvas was disregarding useGL2 flag
authorbadlogic <badlogicgames@gmail.com>
Sat, 16 Mar 2013 23:44:16 +0000 (00:44 +0100)
committerbadlogic <badlogicgames@gmail.com>
Sat, 16 Mar 2013 23:44:16 +0000 (00:44 +0100)
backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/LwjglCanvas.java
tests/gdx-tests-lwjgl/src/com/badlogic/gdx/tests/lwjgl/LwjglDebugStarter.java

index 85ee047..d50b239 100644 (file)
@@ -64,7 +64,7 @@ public class LwjglCanvas implements Application {
 \r
        public LwjglCanvas (ApplicationListener listener, boolean useGL2) {\r
                LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();\r
-               config.useGL20 = true;\r
+               config.useGL20 = useGL2;\r
                initialize(listener, config);\r
        }\r
 \r
index 1e7eeed..45ac04f 100644 (file)
@@ -42,6 +42,7 @@ public class LwjglDebugStarter {
                new SharedLibraryLoader("../../extensions/gdx-controllers/gdx-controllers-desktop/libs/gdx-controllers-desktop-natives.jar").load("gdx-controllers-desktop");\r
                new SharedLibraryLoader("../../gdx/libs/gdx-natives.jar").load("gdx");\r
 \r
+               \r
                GdxTest test = new TiledMapDirectLoaderTest();\r
                LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();\r
                config.useGL20 = test.needsGL20();\r