diff options
author | Sven Gothel <[email protected]> | 2013-09-11 16:39:54 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-11 16:39:54 +0200 |
commit | 52820ff19070a8ae9f3966d8c8da42265f1481c2 (patch) | |
tree | e41373dcec13470ddddc31129933507d706f0c97 /src | |
parent | cc27031a8199cdd9d9702d936af6e5d23c12e7d8 (diff) |
Gears, GearsES2, RedSquareES2: Proper debug output for init, reshape and dispose
Diffstat (limited to 'src')
3 files changed, 7 insertions, 7 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java index 3da53c4c0..273d5c4e9 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java @@ -137,7 +137,7 @@ public class GearsES2 implements GLEventListener, TileRendererBase.TileRendererN public void init(GLAutoDrawable drawable) { - System.err.println(Thread.currentThread()+" GearsES2.init ..."); + System.err.println(Thread.currentThread()+" GearsES2.init: tileRendererInUse "+tileRendererInUse); final GL2ES2 gl = drawable.getGL().getGL2ES2(); if(verbose) { @@ -313,7 +313,7 @@ public class GearsES2 implements GLEventListener, TileRendererBase.TileRendererN // private boolean useAndroidDebug = false; public void dispose(GLAutoDrawable drawable) { - System.err.println(Thread.currentThread()+" GearsES2.dispose ... "); + System.err.println(Thread.currentThread()+" GearsES2.dispose: tileRendererInUse "+tileRendererInUse); final Object upstreamWidget = drawable.getUpstreamWidget(); if (upstreamWidget instanceof Window) { final Window window = (Window) upstreamWidget; diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java index 278d61fe7..40e9876ea 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RedSquareES2.java @@ -76,7 +76,7 @@ public class RedSquareES2 implements GLEventListener, TileRendererBase.TileRende public void setClearBuffers(boolean v) { clearBuffers = v; } public void init(GLAutoDrawable glad) { - System.err.println(Thread.currentThread()+" RedSquareES2.init ..."); + System.err.println(Thread.currentThread()+" RedSquareES2.init: tileRendererInUse "+tileRendererInUse); final GL2ES2 gl = glad.getGL().getGL2ES2(); System.err.println("RedSquareES2 init on "+Thread.currentThread()); @@ -175,7 +175,7 @@ public class RedSquareES2 implements GLEventListener, TileRendererBase.TileRende } public void reshape(GLAutoDrawable glad, int x, int y, int width, int height) { - System.err.println(Thread.currentThread()+" RedSquareES2.reshape "+x+"/"+y+" "+width+"x"+height+", swapInterval "+swapInterval+", drawable 0x"+Long.toHexString(glad.getHandle())); + System.err.println(Thread.currentThread()+" RedSquareES2.reshape "+x+"/"+y+" "+width+"x"+height+", swapInterval "+swapInterval+", drawable 0x"+Long.toHexString(glad.getHandle())+", tileRendererInUse "+tileRendererInUse); // Thread.dumpStack(); final GL2ES2 gl = glad.getGL().getGL2ES2(); if( !gl.hasGLSL() ) { @@ -234,7 +234,7 @@ public class RedSquareES2 implements GLEventListener, TileRendererBase.TileRende } public void dispose(GLAutoDrawable glad) { - System.err.println(Thread.currentThread()+" RedSquareES2.dispose ... "); + System.err.println(Thread.currentThread()+" RedSquareES2.dispose: tileRendererInUse "+tileRendererInUse); final GL2ES2 gl = glad.getGL().getGL2ES2(); if( !gl.hasGLSL() ) { return; diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java index 1d992de68..110dfb779 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java @@ -86,7 +86,7 @@ public class Gears implements GLEventListener, TileRendererBase.TileRendererNoti public void init(GLAutoDrawable drawable) { GL2 gl = drawable.getGL().getGL2(); - System.err.println("GearsGL2 init on "+Thread.currentThread()); + System.err.println(Thread.currentThread()+" Gears.init: tileRendererInUse "+tileRendererInUse); System.err.println("Chosen GLCapabilities: " + drawable.getChosenGLCapabilities()); System.err.println("INIT GL IS: " + gl.getClass().getName()); System.err.println(JoglVersion.getGLStrings(gl, null, false).toString()); @@ -229,7 +229,7 @@ public class Gears implements GLEventListener, TileRendererBase.TileRendererNoti } public void dispose(GLAutoDrawable drawable) { - System.err.println("Gears: Dispose"); + System.err.println(Thread.currentThread()+" Gears.dispose: tileRendererInUse "+tileRendererInUse); try { final Object upstreamWidget = drawable.getUpstreamWidget(); if (upstreamWidget instanceof Window) { |