summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-23 13:45:16 +0200
committerSven Gothel <[email protected]>2012-10-23 13:45:16 +0200
commit53d54caf6ee7ea24bcc93599300e06bf455c75aa (patch)
tree16a94ea2593c6f1f64a9c7d55a9ee11ba3f19060
parent03cdffe5739ef8b032638cf4169e713c90fb36c6 (diff)
ImmModeSink: Reduce DEBUG_* print a bit (no this.toString())
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java b/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java
index 300e2b615..888fa526a 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java
@@ -173,9 +173,6 @@ public class ImmModeSink {
}
public void glBegin(int mode) {
- if(DEBUG_BEGIN_END) {
- System.err.println("ImmModeSink.glBegin("+vboSet.mode+"):\n\t"+this);
- }
vboSet.modeOrig = mode;
switch(mode) {
case GL_QUAD_STRIP:
@@ -186,6 +183,9 @@ public class ImmModeSink {
break;
}
vboSet.mode = mode;
+ if(DEBUG_BEGIN_END) {
+ System.err.println("ImmModeSink.glBegin("+vboSet.modeOrig+" -> "+vboSet.mode+")");
+ }
vboSet.checkSeal(false);
}
@@ -203,7 +203,7 @@ public class ImmModeSink {
private void glEnd(GL gl, Buffer indices, boolean immediateDraw) {
if(DEBUG_BEGIN_END) {
- System.err.println("ImmModeSink START glEnd(immediate: "+immediateDraw+"):\n\t"+this);
+ System.err.println("ImmModeSink START glEnd(immediate: "+immediateDraw+")");
}
if(immediateDraw) {
vboSet.seal(gl, true);
@@ -216,7 +216,7 @@ public class ImmModeSink {
vboSet = vboSet.regenerate(gl);
}
if(DEBUG_BEGIN_END) {
- System.err.println("ImmModeSink END glEnd(immediate: "+immediateDraw+"):\n\t"+this);
+ System.err.println("ImmModeSink END glEnd(immediate: "+immediateDraw+")");
}
}
@@ -441,11 +441,12 @@ public class ImmModeSink {
protected void draw(GL gl, Buffer indices, boolean disableBufferAfterDraw, int i)
{
+ enableBuffer(gl, true);
+
if(DEBUG_DRAW) {
System.err.println("ImmModeSink.draw["+i+"].0 (disableBufferAfterDraw: "+disableBufferAfterDraw+"):\n\t"+this);
}
- enableBuffer(gl, true);
-
+
if (buffer!=null) {
if(null==indices) {
if ( GL_QUADS == mode && !gl.isGL2() ) {
@@ -498,7 +499,7 @@ public class ImmModeSink {
}
if(DEBUG_DRAW) {
- System.err.println("ImmModeSink.draw["+i+"].X (disableBufferAfterDraw: "+disableBufferAfterDraw+"):\n\t"+this);
+ System.err.println("ImmModeSink.draw["+i+"].X (disableBufferAfterDraw: "+disableBufferAfterDraw+")");
}
}
@@ -964,7 +965,7 @@ public class ImmModeSink {
}
if(DEBUG_DRAW) {
- System.err.println("ImmModeSink.enableFixed.X "+this);
+ System.err.println("ImmModeSink.enableFixed.X ");
}
}
@@ -1035,7 +1036,7 @@ public class ImmModeSink {
}
if(DEBUG_DRAW) {
- System.err.println("ImmModeSink.enableGLSL.X "+this);
+ System.err.println("ImmModeSink.enableGLSL.X ");
}
}