aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-13 21:33:07 +0200
committerSven Gothel <[email protected]>2012-10-13 21:33:07 +0200
commitdf47c17181e87be226633a9c54ae94d9ba83b78c (patch)
tree9b121570a78cc6f92226cb4f23dea4a84b51758b /src/jake2/render
parent251be664239efe7813ee07e376e2685750f8d4d8 (diff)
Renderer: Catch all exceptions (Throwables) .. to cont. w/ avail driver (i.e. no GL2 on mobile)
Diffstat (limited to 'src/jake2/render')
-rw-r--r--src/jake2/render/Renderer.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/jake2/render/Renderer.java b/src/jake2/render/Renderer.java
index 83fbc5e..28936d0 100644
--- a/src/jake2/render/Renderer.java
+++ b/src/jake2/render/Renderer.java
@@ -46,23 +46,26 @@ public class Renderer {
try {
Class.forName("javax.media.opengl.GL2");
Class.forName("jake2.render.JoglGL2Renderer");
- } catch (ClassNotFoundException e) {
+ } catch (Throwable t) {
// ignore the new jogl driver if runtime not in classpath
- e.printStackTrace();
+ System.err.println("Catched exception: "+t.getMessage());
+ // t.printStackTrace();
}
try {
Class.forName("javax.media.opengl.GL2ES1");
Class.forName("jake2.render.JoglES1Renderer");
- } catch (ClassNotFoundException e) {
+ } catch (Throwable t) {
// ignore the new jogl driver if runtime not in classpath
- e.printStackTrace();
+ System.err.println("Catched exception: "+t.getMessage());
+ // t.printStackTrace();
}
try {
Class.forName("javax.media.opengl.GL2ES2");
Class.forName("jake2.render.JoglES2Renderer");
- } catch (ClassNotFoundException e) {
+ } catch (Throwable t) {
// ignore the new jogl driver if runtime not in classpath
- e.printStackTrace();
+ System.err.println("Catched exception: "+t.getMessage());
+ // t.printStackTrace();
}
} catch (Throwable e) {
e.printStackTrace();