aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
}