diff options
author | Kenneth Russel <[email protected]> | 2006-02-13 08:58:53 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-02-13 08:58:53 +0000 |
commit | affedd43dce976f2958717e0cde64d2842fdc210 (patch) | |
tree | e079e296ad9ced94660f6c3e1625b9b00fd46075 /src/classes/javax/media | |
parent | 07862414f8274f88a6243e8963bbe56fe9f640e7 (diff) |
Added more verbose debugging output to GLJPanel
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@604 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/javax/media')
-rw-r--r-- | src/classes/javax/media/opengl/GLJPanel.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/classes/javax/media/opengl/GLJPanel.java b/src/classes/javax/media/opengl/GLJPanel.java index 6d4d1af2b..65d47e65d 100644 --- a/src/classes/javax/media/opengl/GLJPanel.java +++ b/src/classes/javax/media/opengl/GLJPanel.java @@ -421,6 +421,10 @@ public class GLJPanel extends JPanel implements GLAutoDrawable { if (oglPipelineEnabled) { Java2D.invokeWithOGLContextCurrent(g, new Runnable() { public void run() { + if (DEBUG && VERBOSE) { + System.err.println("-- In invokeWithOGLContextCurrent"); + } + // Create no-op context representing Java2D context if (j2dContext == null) { j2dContext = GLDrawableFactory.getFactory().createExternalGLContext(); @@ -500,6 +504,26 @@ public class GLJPanel extends JPanel implements GLAutoDrawable { } } + if (DEBUG && VERBOSE && Java2D.isFBOEnabled()) { + System.err.print("-- Surface type: "); + int surfaceType = Java2D.getOGLSurfaceType(g); + if (surfaceType == Java2D.UNDEFINED) { + System.err.println("UNDEFINED"); + } else if (surfaceType == Java2D.WINDOW) { + System.err.println("WINDOW"); + } else if (surfaceType == Java2D.PBUFFER) { + System.err.println("PBUFFER"); + } else if (surfaceType == Java2D.TEXTURE) { + System.err.println("TEXTURE"); + } else if (surfaceType == Java2D.FLIP_BACKBUFFER) { + System.err.println("FLIP_BACKBUFFER"); + } else if (surfaceType == Java2D.FBOBJECT) { + System.err.println("FBOBJECT"); + } else { + System.err.println("(Unknown surface type " + surfaceType + ")"); + } + } + drawableHelper.invokeGL(joglDrawable, joglContext, displayAction, initAction); } } finally { |