From 7d7e7c901d8fe54af1230cbf10e568f1a8433cbe Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 13 Mar 2012 20:19:19 +0100 Subject: Adapt to gluegen Properties/Security commits f4ac27e177f6deb444280d3b375e7d343e38bd080 and eedb4b530fb83fc59a26962bcf7847a1404092a0 --- src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/jogl/classes/javax/media/opengl/awt') diff --git a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java index 85ffae63e..b30525c95 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java @@ -43,8 +43,6 @@ package javax.media.opengl.awt; import java.nio.ByteBuffer; import java.nio.IntBuffer; import java.beans.Beans; -import java.security.AccessControlContext; -import java.security.AccessController; import java.awt.Color; import java.awt.EventQueue; @@ -154,22 +152,20 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable, WindowClosing // Used by all backends either directly or indirectly to hook up callbacks private Updater updater = new Updater(); - private static final AccessControlContext localACC = AccessController.getContext(); - // Turns off the pbuffer-based backend (used by default, unless the // Java 2D / OpenGL pipeline is in use) private static boolean hardwareAccelerationDisabled = - Debug.isPropertyDefined("jogl.gljpanel.nohw", true, localACC); + Debug.isPropertyDefined("jogl.gljpanel.nohw", true); // Turns off the fallback to software-based rendering from // pbuffer-based rendering private static boolean softwareRenderingDisabled = - Debug.isPropertyDefined("jogl.gljpanel.nosw", true, localACC); + Debug.isPropertyDefined("jogl.gljpanel.nosw", true); // Indicates whether the Java 2D OpenGL pipeline is enabled private boolean oglPipelineEnabled = Java2D.isOGLPipelineActive() && - !Debug.isPropertyDefined("jogl.gljpanel.noogl", true, localACC); + !Debug.isPropertyDefined("jogl.gljpanel.noogl", true); // For handling reshape events lazily // private int reshapeX; -- cgit v1.2.3