aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-12 23:02:15 +0200
committerSven Gothel <[email protected]>2012-10-12 23:02:15 +0200
commit251be664239efe7813ee07e376e2685750f8d4d8 (patch)
tree8953611a8f805181db09960a695dcaef55076862 /src
parent4a376bf3c519fc54f35cf617b57c8bcf271871a3 (diff)
Renderer: Remove LwjglRenderer (doesn't exist anymore), New Jogl Renderer default order 1) GL2ES2 2) GL2ES1 3) GL2 (to please mobile)
Diffstat (limited to 'src')
-rw-r--r--src/jake2/render/Renderer.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/jake2/render/Renderer.java b/src/jake2/render/Renderer.java
index d4efdd5..83fbc5e 100644
--- a/src/jake2/render/Renderer.java
+++ b/src/jake2/render/Renderer.java
@@ -44,10 +44,11 @@ public class Renderer {
static {
try {
try {
- Class.forName("org.lwjgl.opengl.GL11");
- Class.forName("jake2.render.LwjglRenderer");
+ Class.forName("javax.media.opengl.GL2");
+ Class.forName("jake2.render.JoglGL2Renderer");
} catch (ClassNotFoundException e) {
- // ignore the lwjgl driver if runtime not in classpath
+ // ignore the new jogl driver if runtime not in classpath
+ e.printStackTrace();
}
try {
Class.forName("javax.media.opengl.GL2ES1");
@@ -63,13 +64,6 @@ public class Renderer {
// ignore the new jogl driver if runtime not in classpath
e.printStackTrace();
}
- try {
- Class.forName("javax.media.opengl.GL2");
- Class.forName("jake2.render.JoglGL2Renderer");
- } catch (ClassNotFoundException e) {
- // ignore the new jogl driver if runtime not in classpath
- e.printStackTrace();
- }
} catch (Throwable e) {
e.printStackTrace();
}