summaryrefslogtreecommitdiffstats
path: root/src/test/jogamp/newt
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/jogamp/newt')
-rw-r--r--src/test/jogamp/newt/WindowImplAccess.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/jogamp/newt/WindowImplAccess.java b/src/test/jogamp/newt/WindowImplAccess.java
index 848e58227..76d0dc050 100644
--- a/src/test/jogamp/newt/WindowImplAccess.java
+++ b/src/test/jogamp/newt/WindowImplAccess.java
@@ -45,7 +45,12 @@ public class WindowImplAccess {
} else {
throw new RuntimeException("Given Window not a GLWindow, not WindowImpl, but "+win.getClass());
}
- winImpl.windowDestroyNotify();
+ final WindowImpl winImplF = winImpl;
+ winImplF.runOnEDTIfAvail(true, new Runnable() {
+ public void run() {
+ winImplF.windowDestroyNotify();
+ }
+ });
}
}