From 944a0ca587d20d193b9f8c7b5edbd0b0bd0d7666 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 3 Jul 2009 23:31:02 +0000 Subject: Fix property query. Thx to Ken pointing this out. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@2018 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/jogl/classes/com/sun/opengl/util/texture/Texture.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/com/sun/opengl/util/texture') diff --git a/src/jogl/classes/com/sun/opengl/util/texture/Texture.java b/src/jogl/classes/com/sun/opengl/util/texture/Texture.java index c8dda5ed5..87f045a6d 100755 --- a/src/jogl/classes/com/sun/opengl/util/texture/Texture.java +++ b/src/jogl/classes/com/sun/opengl/util/texture/Texture.java @@ -37,6 +37,7 @@ package com.sun.opengl.util.texture; import java.nio.*; +import java.security.*; import javax.media.opengl.*; import javax.media.opengl.glu.*; @@ -168,12 +169,14 @@ public class Texture { /** An estimate of the amount of texture memory this texture consumes. */ private int estimatedMemorySize; + private static final AccessControlContext localACC = AccessController.getContext(); + private static final boolean DEBUG = Debug.debug("Texture"); private static final boolean VERBOSE = Debug.verbose(); // For testing alternate code paths on more capable hardware - private static final boolean disableNPOT = Debug.isPropertyDefined("jogl.texture.nonpot"); - private static final boolean disableTexRect = Debug.isPropertyDefined("jogl.texture.notexrect"); + private static final boolean disableNPOT = Debug.isPropertyDefined("jogl.texture.nonpot", true, localACC); + private static final boolean disableTexRect = Debug.isPropertyDefined("jogl.texture.notexrect", true, localACC); public Texture(TextureData data) throws GLException { GL gl = GLContext.getCurrentGL(); -- cgit v1.2.3