aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
diff options
context:
space:
mode:
authorMorris Meyer <[email protected]>2009-07-28 17:34:20 -0400
committerMorris Meyer <[email protected]>2009-07-28 17:39:14 -0400
commitb6d75cac68340878b20d35b23c8449c97ad9d819 (patch)
tree2cbd05b91739249458ea5f4e18556601ac2b9c2a /src/jogl/classes/com/sun/opengl/impl/egl/EGLDynamicLookupHelper.java
parentd73af059e836943fa37b9f7aab93154f530763d9 (diff)
EGL changes for device
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, 10 insertions, 4 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..99f163ca1 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 = com.sun.opengl.impl.Debug.debug("EGL");
+ protected static final boolean DEBUG = true; /* com.sun.opengl.impl.Debug.debug("EGL"); */
private static final EGLDynamicLookupHelper eglES1DynamicLookupHelper;
private static final EGLDynamicLookupHelper eglES2DynamicLookupHelper;
@@ -136,9 +136,13 @@ public abstract class EGLDynamicLookupHelper implements DynamicLookupHelper {
private NativeLibrary loadFirstAvailable(List/*<String>*/ libNames, ClassLoader loader) {
for (Iterator iter = libNames.iterator(); iter.hasNext(); ) {
- NativeLibrary lib = NativeLibrary.open((String) iter.next(), loader, false /*global*/);
+ String libname = (String) iter.next();
+ NativeLibrary lib = NativeLibrary.open(libname, loader, false /*global*/);
if (lib != null) {
+ System.out.println("found: " + libname);
return lib;
+ } else {
+ System.out.println("looked for: " + libname);
}
}
return null;
@@ -164,9 +168,11 @@ 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);
+ // 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);
}
- glesLibraries.add(lib);
}
if (esProfile==2) {