From 9c96be7c0a1a19365ae983908260c6ff44f045c4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 2 Oct 2012 17:13:56 +0200 Subject: NativeWindowFactory: Remove 'remedy' of Bug 613 Commit 92398025abdabb2fdef0d78edd41e730991a6f94 GlobalToolkitLock for create/destroy Turns out on it has no effect and ATI prop. driver still has XCB failures at this point. --- .../classes/javax/media/nativewindow/NativeWindowFactory.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/nativewindow/classes/javax/media') diff --git a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java index 006ee4c97..37d408990 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java +++ b/src/nativewindow/classes/javax/media/nativewindow/NativeWindowFactory.java @@ -42,7 +42,6 @@ import java.util.HashMap; import java.util.Map; import jogamp.nativewindow.Debug; -import jogamp.nativewindow.GlobalToolkitLock; import jogamp.nativewindow.NativeWindowFactoryImpl; import jogamp.nativewindow.ToolkitProperties; import jogamp.nativewindow.ResourceToolkitLock; @@ -375,14 +374,6 @@ public abstract class NativeWindowFactory { return NativeWindowFactoryImpl.getNullToolkitLock(); } - /** - * Ony call this for small code segments for desktop w/ threading issues. - * @return {@link GlobalToolkitLock} if desktop has threading issues, otherwise {@link #getNullToolkitLock()} - */ - public static ToolkitLock getGlobalToolkitLockIfRequired() { - return desktopHasThreadingIssues ? GlobalToolkitLock.getSingleton() : getNullToolkitLock(); - } - /** * Provides the system default {@link ToolkitLock} for the default system windowing type. * @see #getNativeWindowType(boolean) -- cgit v1.2.3