summaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-05-29 14:42:28 +0000
committerKenneth Russel <[email protected]>2006-05-29 14:42:28 +0000
commit2ebf1e32197d7236ff820c542e22ec78e700bdc1 (patch)
tree3822d5acba6ac0cbaac2139e57653736de95d4bb /src/classes/com/sun
parent27279cd88a1b57d59ca1d8bf2fcc343ed17288b8 (diff)
Fixed Issue 220: Gears demo throws exceptions with -Dsun.java2d.opengl=true
On non-X11 platforms, removed workaround in Threading class which treats both the EDT and the QFT as viable threads upon which to execute OpenGL work. Deadlock issues remain on X11 threads when causing OpenGL contexts associated with heavyweight widgets to be made current on the QFT. On Windows the QFT is now used for all OpenGL work when the Java2D/JOGL bridge is active. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@786 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun')
-rwxr-xr-xsrc/classes/com/sun/opengl/impl/Java2D.java2
-rw-r--r--src/classes/com/sun/opengl/impl/windows/WindowsGLContext.java3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/classes/com/sun/opengl/impl/Java2D.java b/src/classes/com/sun/opengl/impl/Java2D.java
index 3d14f3003..de3d477e3 100755
--- a/src/classes/com/sun/opengl/impl/Java2D.java
+++ b/src/classes/com/sun/opengl/impl/Java2D.java
@@ -412,11 +412,13 @@ public class Java2D {
// similar rather than keeping one share context in a global
// variable.
initializedJ2DFBOShareContext = true;
+ System.err.println("Starting initialization of J2D FBO share context");
invokeWithOGLSharedContextCurrent(gc, new Runnable() {
public void run() {
j2dFBOShareContext = GLDrawableFactory.getFactory().createExternalGLContext();
}
});
+ System.err.println("Ending initialization of J2D FBO share context");
}
}
}
diff --git a/src/classes/com/sun/opengl/impl/windows/WindowsGLContext.java b/src/classes/com/sun/opengl/impl/windows/WindowsGLContext.java
index a78c3baf0..7a4b73351 100644
--- a/src/classes/com/sun/opengl/impl/windows/WindowsGLContext.java
+++ b/src/classes/com/sun/opengl/impl/windows/WindowsGLContext.java
@@ -121,6 +121,9 @@ public class WindowsGLContext extends GLContextImpl {
if (hglrc == 0) {
throw new GLException("Unable to create OpenGL context for device context " + toHexString(drawable.getHDC()));
}
+ if (DEBUG) {
+ System.err.println(getThreadName() + ": !!! Created OpenGL context " + toHexString(hglrc) + " for " + this + ", device context " + toHexString(drawable.getHDC()) + ", not yet sharing");
+ }
// Windows can set up sharing of display lists after creation time
WindowsGLContext other = (WindowsGLContext) GLContextShareSet.getShareContext(this);
long hglrc2 = 0;