aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
diff options
context:
space:
mode:
authorsg215889 <[email protected]>2009-07-28 19:03:32 -0700
committersg215889 <[email protected]>2009-07-28 19:03:32 -0700
commit4b5e1a0f826597d8cdcf81865194ee8d67511b70 (patch)
tree33c7394f6a11fcde8ce59035f94f680e1d2d3861 /src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
parent0a92a47567cfa36b33590bacf4c782c0ec4f9eaf (diff)
Cleanup ..
Diffstat (limited to 'src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java')
-rwxr-xr-xsrc/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java14
1 files changed, 4 insertions, 10 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 99f163ca1..8bed0eb35 100755
--- a/src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
+++ b/src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
@@ -50,7 +50,7 @@ import com.sun.gluegen.runtime.DynamicLookupHelper;
* Currently two implementations exist, one for ES1 and one for ES2.
*/
public abstract class EGLDynamicLookupHelper implements DynamicLookupHelper {
- protected static final boolean DEBUG = true; /* com.sun.opengl.impl.Debug.debug("EGL"); */
+ protected static final boolean DEBUG = com.sun.opengl.impl.Debug.debug("EGL");
private static final EGLDynamicLookupHelper eglES1DynamicLookupHelper;
private static final EGLDynamicLookupHelper eglES2DynamicLookupHelper;
@@ -136,13 +136,9 @@ public abstract class EGLDynamicLookupHelper implements DynamicLookupHelper {
private NativeLibrary loadFirstAvailable(List/*<String>*/ libNames, ClassLoader loader) {
for (Iterator iter = libNames.iterator(); iter.hasNext(); ) {
- String libname = (String) iter.next();
- NativeLibrary lib = NativeLibrary.open(libname, loader, false /*global*/);
+ NativeLibrary lib = NativeLibrary.open((String) iter.next(), loader, false /*global*/);
if (lib != null) {
- System.out.println("found: " + libname);
return lib;
- } else {
- System.out.println("looked for: " + libname);
}
}
return null;
@@ -168,11 +164,9 @@ public abstract class EGLDynamicLookupHelper implements DynamicLookupHelper {
// EGL libraries ..
lib = loadFirstAvailable(eglLibNames, loader);
if (lib == null) {
- // throw new GLException("Unable to dynamically load EGL library for profile ES" + esProfile);
- System.out.println("Unable to dynamically load EGL library for profile ES" + esProfile);
- } else {
- glesLibraries.add(lib);
+ throw new GLException("Unable to dynamically load EGL library for profile ES" + esProfile);
}
+ glesLibraries.add(lib);
}
if (esProfile==2) {