diff options
Diffstat (limited to 'src/jogl/classes/com')
3 files changed, 7 insertions, 4 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/Region.java b/src/jogl/classes/com/jogamp/graph/curve/Region.java index 07592430e..66ef3da6e 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/Region.java +++ b/src/jogl/classes/com/jogamp/graph/curve/Region.java @@ -61,9 +61,11 @@ import com.jogamp.opengl.util.texture.TextureSequence; */ public abstract class Region { + public static final boolean DEBUG_ALL_EVENT = Debug.debugExplicit("graph.curve.AllEvent"); + public static final boolean DEBUG_INSTANCE = Debug.debugExplicit("graph.curve.Instance"); + /** Debug flag for [com.]jogamp.graph.curve.* incl. Region (graph.curve) */ - public static final boolean DEBUG = Debug.debug("graph.curve"); - public static final boolean DEBUG_INSTANCE = Debug.debug("graph.curve.Instance"); + public static final boolean DEBUG = DEBUG_ALL_EVENT || Debug.debug("graph.curve"); /** * Rendering-Mode bit for {@link #getRenderModes() Region} diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java index 0c939d015..6fbedf809 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java +++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java @@ -65,6 +65,7 @@ import com.jogamp.graph.curve.Region; */ public final class RegionRenderer { protected static final boolean DEBUG = Region.DEBUG; + protected static final boolean DEBUG_ALL_EVENT = Region.DEBUG_ALL_EVENT; protected static final boolean DEBUG_INSTANCE = Region.DEBUG_INSTANCE; /** @@ -560,7 +561,7 @@ public final class RegionRenderer { if( DEBUG ) { if( spChanged ) { System.err.printf("RegionRendererImpl01.useShaderProgram.X1: GOT renderModes %s, sel1 %s, key 0x%X -> sp %d / %d (changed)%n", Region.getRenderModeString(renderModes), sel1, shaderKey, sp.program(), sp.id()); - } else { + } else if( DEBUG_ALL_EVENT ) { System.err.printf("RegionRendererImpl01.useShaderProgram.X1: GOT renderModes %s, sel1 %s, key 0x%X -> sp %d / %d (keep)%n", Region.getRenderModeString(renderModes), sel1, shaderKey, sp.program(), sp.id()); } } diff --git a/src/jogl/classes/com/jogamp/opengl/math/FloatUtil.java b/src/jogl/classes/com/jogamp/opengl/math/FloatUtil.java index c25abe188..25b5a8ad7 100644 --- a/src/jogl/classes/com/jogamp/opengl/math/FloatUtil.java +++ b/src/jogl/classes/com/jogamp/opengl/math/FloatUtil.java @@ -81,7 +81,7 @@ import com.jogamp.common.os.Platform; * </p> */ public final class FloatUtil { - public static final boolean DEBUG = Debug.debug("Math"); + public static final boolean DEBUG = Debug.debugExplicit("Math"); // // Matrix Ops |