aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2013-09-02 07:05:11 +0200
committerSven Gothel <sgothel@jausoft.com>2013-09-02 07:05:11 +0200
commit32171ee45370a9c6dacb582c39d51d0ff17911f1 (patch)
tree45c122f8fdb6912f91931774dcc0b31bafd201e9 /src/newt/classes
parent43cc2ea7529f92068ec3645e87e439f129fec99b (diff)
Animator/GLWindow: Catch 'ThreadDeath/Throwable' and dump info in DEBUG mode (cosmetic change only); Typo in comment; TestSharedContextListNEWT2: Stop animator.
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/com/jogamp/newt/opengl/GLWindow.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
index 30c51218b..45ab2a44c 100644
--- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
+++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
@@ -553,6 +553,10 @@ public class GLWindow extends GLAutoDrawableBase implements GLAutoDrawable, Wind
try {
animThread.stop();
} catch(Throwable t) {
+ if( DEBUG ) {
+ System.err.println("Catched "+t.getClass().getName()+": "+t.getMessage());
+ t.printStackTrace();
+ }
}
}
return null;