diff options
author | Sven Gothel <[email protected]> | 2013-09-02 07:05:11 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-02 07:05:11 +0200 |
commit | 32171ee45370a9c6dacb582c39d51d0ff17911f1 (patch) | |
tree | 45c122f8fdb6912f91931774dcc0b31bafd201e9 /src/jogl/classes/com | |
parent | 43cc2ea7529f92068ec3645e87e439f129fec99b (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/jogl/classes/com')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/Animator.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/Animator.java b/src/jogl/classes/com/jogamp/opengl/util/Animator.java index ac2b24117..80d980492 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/Animator.java +++ b/src/jogl/classes/com/jogamp/opengl/util/Animator.java @@ -201,6 +201,11 @@ public class Animator extends AnimatorBase { Thread.yield(); } } + } catch( ThreadDeath td) { + if(DEBUG) { + System.err.println("Animator Catched: "+td.getClass().getName()+": "+td.getMessage()); + td.printStackTrace(); + } } finally { if( exclusiveContext && !drawablesEmpty ) { setDrawablesExclCtxState(false); |