From 8234f7a4291de911ce416dcee8c22e12f61a0c3d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 3 Oct 2013 00:03:27 +0200 Subject: GLJPanel: Fix 7u40 access to property 'sun.java2d.opengl'. Property was trusted before .. --- src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/jogl') diff --git a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java index 14efbc302..dae631f2a 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java @@ -178,12 +178,7 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable, WindowClosing DEBUG_VIEWPORT = Debug.isPropertyDefined("jogl.debug.GLJPanel.Viewport", true); USE_GLSL_TEXTURE_RASTERIZER = !Debug.isPropertyDefined("jogl.gljpanel.noglsl", true); - boolean enabled = false; - final String sVal = System.getProperty("sun.java2d.opengl"); - if( null != sVal ) { - enabled = Boolean.valueOf(sVal); - } - Debug.initSingleton(); + boolean enabled = Debug.getBooleanProperty("sun.java2d.opengl", false); java2dOGLEnabledByProp = enabled && !Debug.isPropertyDefined("jogl.gljpanel.noogl", true); enabled = false; -- cgit v1.2.3