aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
diff options
context:
space:
mode:
authorsg215889 <[email protected]>2009-07-29 02:49:40 -0700
committersg215889 <[email protected]>2009-07-29 02:49:40 -0700
commitb00c6b4d36d60bc3a29a4458e42fb29c9a9ca941 (patch)
treecea248e58cf06f064a5935411e1e83db1cddf3f1 /src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
parent219abab46a80b4529c09e9b1e1b77906d6a93dca (diff)
Refine debug message
Diffstat (limited to 'src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java')
-rwxr-xr-xsrc/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java b/src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
index 8bed0eb35..02aed9788 100755
--- a/src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
+++ b/src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
@@ -42,6 +42,7 @@ import com.sun.opengl.impl.*;
import com.sun.nativewindow.impl.*;
import com.sun.gluegen.runtime.NativeLibrary;
import com.sun.gluegen.runtime.DynamicLookupHelper;
+import java.security.*;
/**
* Abstract implementation of the DynamicLookupHelper for EGL,
@@ -51,12 +52,16 @@ import com.sun.gluegen.runtime.DynamicLookupHelper;
*/
public abstract class EGLDynamicLookupHelper implements DynamicLookupHelper {
protected static final boolean DEBUG = com.sun.opengl.impl.Debug.debug("EGL");
+ protected static final boolean DEBUG_LOOKUP;
private static final EGLDynamicLookupHelper eglES1DynamicLookupHelper;
private static final EGLDynamicLookupHelper eglES2DynamicLookupHelper;
private List/*<NativeLibrary>*/ glesLibraries;
static {
+ AccessControlContext localACC=AccessController.getContext();
+ DEBUG_LOOKUP = com.sun.opengl.impl.Debug.isPropertyDefined("jogl.debug.DynamicLookup", true, localACC);
+
EGLDynamicLookupHelper tmp=null;
try {
tmp = new EGLES1DynamicLookupHelper();
@@ -190,7 +195,7 @@ public abstract class EGLDynamicLookupHelper implements DynamicLookupHelper {
addr = dynamicLookupFunctionOnLibsImpl(funcName);
}
}
- if(DEBUG) {
+ if(DEBUG_LOOKUP) {
if(0!=addr) {
System.err.println("Lookup-Native: "+glFuncName+" / "+funcName+" 0x"+Long.toHexString(addr));
} else {
@@ -236,7 +241,7 @@ public abstract class EGLDynamicLookupHelper implements DynamicLookupHelper {
}
long addr = EGL.eglGetProcAddress(eglGetProcAddressHandle, glFuncName);
- if(DEBUG) {
+ if(DEBUG_LOOKUP) {
if(0!=addr) {
System.err.println("Lookup-EGL: <"+glFuncName+"> 0x"+Long.toHexString(addr));
}