From 75afd5c6be7f68b32fbe9e5d319d888888b30719 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 6 Dec 2019 01:29:37 +0100 Subject: Fix regression of commit 2b899a55e365aa03aeb234187600526777c1a9ac This bug never allowed a PointerIconImpl to be destroyed via PointerIconImpl.destroy() --- src/newt/classes/jogamp/newt/PointerIconImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()); } } } ); -- cgit v1.2.3