diff options
author | Sven Gothel <[email protected]> | 2012-03-26 21:05:15 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-03-26 21:05:15 +0200 |
commit | 56434e48876a85e027bca5463afdc86929d025cf (patch) | |
tree | 7652bc6c3fd72aa8bebc1d3aaa5fd8b733e586c0 /src/jogl/classes/jogamp/opengl/awt | |
parent | 375ab2da54ded1f3b3d90dc21b91fc6b87c64285 (diff) |
Adapt to gluegen commit 1c03dfd6d1939a46018583419956e350e531f4fe - Fix Bug 566
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/awt')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/awt/AWTThreadingPlugin.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/jogl/classes/jogamp/opengl/awt/AWTThreadingPlugin.java b/src/jogl/classes/jogamp/opengl/awt/AWTThreadingPlugin.java index 73b7d197d..983f11133 100644 --- a/src/jogl/classes/jogamp/opengl/awt/AWTThreadingPlugin.java +++ b/src/jogl/classes/jogamp/opengl/awt/AWTThreadingPlugin.java @@ -41,10 +41,10 @@ package jogamp.opengl.awt; import java.awt.EventQueue; -import java.lang.reflect.InvocationTargetException; import javax.media.opengl.GLException; +import jogamp.common.awt.AWTEDTExecutor; import jogamp.opengl.GLWorkerThread; import jogamp.opengl.ThreadingImpl; import jogamp.opengl.ToolkitThreadingPlugin; @@ -100,17 +100,7 @@ public class AWTThreadingPlugin implements ToolkitThreadingPlugin { } } else { - try { - if(wait) { - EventQueue.invokeAndWait(r); - } else { - EventQueue.invokeLater(r); - } - } catch (InvocationTargetException e) { - throw new GLException(e.getTargetException()); - } catch (InterruptedException e) { - throw new GLException(e); - } + AWTEDTExecutor.singleton.invoke(wait, r); } break; |