aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-12-01 20:05:01 +0100
committerSven Gothel <[email protected]>2013-12-01 20:05:01 +0100
commit11a4a3a7b120c6f7c34a717828da49e3a13f4a3b (patch)
tree3d91ae4572e36008e3bc32503282070449560aba /src
parentefc158abbb2c282029aaa746e032ec678e374d7b (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/javax/media/opengl/awt/GLJPanel.java10
1 files changed, 0 insertions, 10 deletions
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
* <code>true</code>, otherwise <code>false</code>.
* </p>
* <p>
- * Due to threading restrictions, <i>arbitrary thread</i> initialization is <i>not supported</i> on:
- * <ul>
- * <li>{@link NativeWindowFactory.TYPE_WINDOWS}</li>
- * </ul>
- * </p>
- * <p>
* If <code>offthread</code> is <code>false</code>, initialization be performed
* on the current thread and method returns after initialization.<br/>
* Method returns <code>true</code> if initialization was successful, otherwise <code>false</code>.
@@ -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 ) {