aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-26 22:43:10 +0100
committerSven Gothel <[email protected]>2011-02-26 22:43:10 +0100
commite5f0ee1e8969b9259f31b88f9ddd7165ab8ca5ae (patch)
tree15f160be9d4033de997ba57c9bcc090809efa61c /src/jogl
parent10c696f7e908ccbf150838f86b286b7c383058c6 (diff)
Attempt to analyze failed AWT UI tests, where no paint is being issued to GLCanvas.
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/javax/media/opengl/awt/GLCanvas.java17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
index 78038500e..086a17362 100644
--- a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
+++ b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
@@ -380,6 +380,9 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable, WindowClosing
public void display() {
if( !validateGLDrawable() ) {
+ if(DEBUG) {
+ System.err.println("Info: GLCanvas display - skipped GL render, drawable not valid yet");
+ }
return; // not yet available ..
}
maybeDoSingleThreadedWorkaround(displayOnEventDispatchThreadAction,
@@ -740,11 +743,19 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable, WindowClosing
}
}
- @Override
+ @Override
public String toString() {
- return "AWT-GLCanvas[ "+awtConfig+", "+((null!=drawable)?drawable.getClass().getName():"null-drawable")+"]";
+ return "AWT-GLCanvas[Realized "+isRealized()+
+ ",\n\t"+((null!=drawable)?drawable.getClass().getName():"null-drawable")+
+ ",\n\tRealized "+isRealized()+
+ ",\n\tFactory "+getFactory()+
+ ",\n\thandle 0x"+Long.toHexString(getHandle())+
+ ",\n\tDrawable size "+drawable.getWidth()+"x"+drawable.getHeight()+
+ ",\n\tAWT pos "+getX()+"/"+getY()+", size "+getWidth()+"x"+getHeight()+
+ ",\n\tvisible "+isVisible()+
+ ",\n\t"+awtConfig+"]";
}
-
+
//----------------------------------------------------------------------
// Internals only below this point
//