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 | |
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')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/Animator.java | 5 | ||||
-rw-r--r-- | src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java | 2 |
2 files changed, 6 insertions, 1 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); diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java index 52069b88f..91beddb02 100644 --- a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java @@ -337,7 +337,7 @@ public class X11GLXDrawableFactory extends GLDrawableFactoryImpl { if (null != sr.context) { // may cause JVM SIGSEGV: - sr.context.destroy(); // will also pull the dummy MutuableSurface + sr.context.destroy(); // will also pull the dummy MutableSurface sr.context = null; } |