summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-12-06 01:29:37 +0100
committerSven Gothel <[email protected]>2019-12-06 01:29:37 +0100
commit75afd5c6be7f68b32fbe9e5d319d888888b30719 (patch)
treea14932436bb4b42a403d95938036433670326331 /src/newt/classes/jogamp
parentc317985db39f840f6edf9860487c604e6e31c2ba (diff)
Fix regression of commit 2b899a55e365aa03aeb234187600526777c1a9ac
This bug never allowed a PointerIconImpl to be destroyed via PointerIconImpl.destroy()
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r--src/newt/classes/jogamp/newt/PointerIconImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/classes/jogamp/newt/PointerIconImpl.java b/src/newt/classes/jogamp/newt/PointerIconImpl.java
index 57f613fea..a4d4c8586 100644
--- a/src/newt/classes/jogamp/newt/PointerIconImpl.java
+++ b/src/newt/classes/jogamp/newt/PointerIconImpl.java
@@ -125,7 +125,7 @@ public class PointerIconImpl implements PointerIcon {
}
display.runOnEDTIfAvail(false, new Runnable() {
public void run() {
- if( !display.isNativeValidAsync() ) {
+ if( display.isNativeValidAsync() ) {
destroyOnEDT(display.getHandle());
}
} } );