From 2e71f18aa514622b855a7f463a9d9f82b9e66d9f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 5 Apr 2011 01:12:51 +0200 Subject: GLContext: Added java.debug.DebugGL and java.debug.TraceGL to enable debug and trace pipeline. --- src/jogl/classes/javax/media/opengl/GLContext.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/javax/media/opengl') diff --git a/src/jogl/classes/javax/media/opengl/GLContext.java b/src/jogl/classes/javax/media/opengl/GLContext.java index b859dee00..c5f0bc83e 100644 --- a/src/jogl/classes/javax/media/opengl/GLContext.java +++ b/src/jogl/classes/javax/media/opengl/GLContext.java @@ -58,7 +58,12 @@ import jogamp.opengl.Debug; abstraction provides a stable object which clients can use to refer to a given context. */ public abstract class GLContext { - protected static final boolean DEBUG0 = Debug.debug("GLContext"); + /** Reflects property jogl.debug.DebugGL. If true, the debug pipeline is enabled at context creation. */ + public final static boolean DEBUG_GL = Debug.debug("DebugGL"); + /** Reflects property jogl.debug.TraceGL. If true, the trace pipeline is enabled at context creation. */ + public final static boolean TRACE_GL = Debug.debug("TraceGL"); + + protected static final boolean DEBUG = Debug.debug("GLContext"); /** Indicates that the context was not made current during the last call to {@link #makeCurrent makeCurrent}. */ public static final int CONTEXT_NOT_CURRENT = 0; @@ -601,7 +606,7 @@ public abstract class GLContext { throw new InternalError("Already set: "+devKey); } deviceVersionsAvailableSet.add(devKey); - if (DEBUG0) { + if (DEBUG) { String msg = getThreadName() + ": !!! createContextARB: SET mappedVersionsAvailableSet "+devKey; // Throwable t = new Throwable(msg); // t.printStackTrace(); -- cgit v1.2.3