diff options
author | Sven Gothel <[email protected]> | 2012-03-13 20:19:19 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-03-13 20:19:19 +0100 |
commit | 7d7e7c901d8fe54af1230cbf10e568f1a8433cbe (patch) | |
tree | fe878a3776be351faa3c3f7f10583af5f38c112d /src/jogl/classes/javax/media/opengl/GLContext.java | |
parent | 558a674f5ed727be1536cffd882d43458ce47a37 (diff) |
Adapt to gluegen Properties/Security commits f4ac27e177f6deb444280d3b375e7d343e38bd080 and eedb4b530fb83fc59a26962bcf7847a1404092a0
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLContext.java')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLContext.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLContext.java b/src/jogl/classes/javax/media/opengl/GLContext.java index cc6b40f54..f928bc126 100644 --- a/src/jogl/classes/javax/media/opengl/GLContext.java +++ b/src/jogl/classes/javax/media/opengl/GLContext.java @@ -41,8 +41,6 @@ package javax.media.opengl; import java.nio.IntBuffer; -import java.security.AccessControlContext; -import java.security.AccessController; import java.util.HashMap; import java.util.HashSet; @@ -70,18 +68,11 @@ import jogamp.opengl.GLContextImpl; public abstract class GLContext { public static final boolean DEBUG = Debug.debug("GLContext"); - public static final boolean TRACE_SWITCH; + public static final boolean TRACE_SWITCH = Debug.isPropertyDefined("jogl.debug.GLContext.TraceSwitch", true); /** Reflects property jogl.debug.DebugGL. If true, the debug pipeline is enabled at context creation. */ - public final static boolean DEBUG_GL; + public final static boolean DEBUG_GL = Debug.isPropertyDefined("jogl.debug.DebugGL", true); /** Reflects property jogl.debug.TraceGL. If true, the trace pipeline is enabled at context creation. */ - public final static boolean TRACE_GL; - - static { - final AccessControlContext acl = AccessController.getContext(); - DEBUG_GL = Debug.isPropertyDefined("jogl.debug.DebugGL", true, acl); - TRACE_GL = Debug.isPropertyDefined("jogl.debug.TraceGL", true, acl); - TRACE_SWITCH = Debug.isPropertyDefined("jogl.debug.GLContext.TraceSwitch", true, acl); - } + public final static boolean TRACE_GL = Debug.isPropertyDefined("jogl.debug.TraceGL", true); /** Indicates that the context was not made current during the last call to {@link #makeCurrent makeCurrent}. */ public static final int CONTEXT_NOT_CURRENT = 0; |