From 11a4a3a7b120c6f7c34a717828da49e3a13f4a3b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 1 Dec 2013 20:05:01 +0100 Subject: GLJPanel.initializeBackend(offthread=true): Enable on Windows, thanks to Bug 907 impl. DummyDispatchThread (DDT) Bug 907 implemented DDT used to create and destroy offscreen surface's dummy drawable on Windows. This enables offscreen initialization on Windows running from a short lived arbitrary thread. --- src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java index 70dd8b99d..8670c3746 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java @@ -58,7 +58,6 @@ import java.util.List; import javax.media.nativewindow.AbstractGraphicsDevice; import javax.media.nativewindow.NativeSurface; -import javax.media.nativewindow.NativeWindowFactory; import javax.media.nativewindow.WindowClosingProtocol; import javax.media.opengl.GL; import javax.media.opengl.GL2; @@ -361,12 +360,6 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable, WindowClosing * true, otherwise false. *

*

- * Due to threading restrictions, arbitrary thread initialization is not supported on: - *

- *

- *

* If offthread is false, initialization be performed * on the current thread and method returns after initialization.
* Method returns true if initialization was successful, otherwise false. @@ -375,9 +368,6 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable, WindowClosing */ public final boolean initializeBackend(boolean offthread) { if( offthread ) { - if( NativeWindowFactory.TYPE_WINDOWS == NativeWindowFactory.getNativeWindowType(true) ) { - return false; - } new Thread(getThreadName()+"-GLJPanel_Init") { public void run() { if( !isInitialized ) { -- cgit v1.2.3