summaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun
diff options
context:
space:
mode:
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;