diff options
author | Sven Gothel <[email protected]> | 2014-08-05 23:01:28 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-08-05 23:01:28 +0200 |
commit | 07a4801f3b5bfd4fba9a1a4a542ce2f2eae4396a (patch) | |
tree | 54cf1b8928bbaa547f4dca61d7788135c782d14d /src/jogl/classes/javax | |
parent | b66b068b5c1c238ea702ba7e8ea0c8a1c47cfcf1 (diff) |
Bug 1039 - Specify behavior of GLEventListener Exceptions occurring while GLAutoDrawable processing [part-2]
In case of an exception thrown within an GLEventListener
called off-thread by Animator:
- Animator shall stop
- Animator shall forward the exception
GLDrawableHelper shall also flush all queued GLRunnable tasks
in case of an exception, so that another thread waiting until it's completion
is notified and continues processing.
Diffstat (limited to 'src/jogl/classes/javax')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLException.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLException.java b/src/jogl/classes/javax/media/opengl/GLException.java index 15e9cddac..dff9b9dad 100644 --- a/src/jogl/classes/javax/media/opengl/GLException.java +++ b/src/jogl/classes/javax/media/opengl/GLException.java @@ -66,8 +66,10 @@ public class GLException extends RuntimeException { super(cause); } - /** Constructs a GLException object with the specified root - cause with a decorating message including the current thread name. */ + /** + * Constructs a GLException object with the specified root + * cause with a decorating message including the current thread name. + */ public static GLException newGLException(final Throwable t) { return new GLException("Caught "+t.getClass().getSimpleName()+": "+t.getMessage()+" on thread "+Thread.currentThread().getName(), t); } |