summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/gluegen')
-rw-r--r--src/java/com/jogamp/gluegen/runtime/opengl/GLProcAddressResolver.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/java/com/jogamp/gluegen/runtime/opengl/GLProcAddressResolver.java b/src/java/com/jogamp/gluegen/runtime/opengl/GLProcAddressResolver.java
index ebe4d2685..914e52792 100644
--- a/src/java/com/jogamp/gluegen/runtime/opengl/GLProcAddressResolver.java
+++ b/src/java/com/jogamp/gluegen/runtime/opengl/GLProcAddressResolver.java
@@ -39,23 +39,23 @@ import com.jogamp.gluegen.runtime.FunctionAddressResolver;
*/
public class GLProcAddressResolver implements FunctionAddressResolver {
+ public static final boolean DEBUG = false;
public long resolve(String name, DynamicLookupHelper lookup) {
+ long newProcAddress = 0;
int permutations = GLExtensionNames.getFuncNamePermutationNumber(name);
- for (int i = 0; i < permutations; i++) {
+ for (int i = 0; 0 == newProcAddress && i < permutations; i++) {
String funcName = GLExtensionNames.getFuncNamePermutation(name, i);
try {
- return lookup.dynamicLookupFunction(funcName);
+ newProcAddress = lookup.dynamicLookupFunction(funcName);
} catch (Exception e) {
-// if (DEBUG) {
-// dout.println(e);
-// e.printStackTrace();
-// }
+ if (DEBUG) {
+ e.printStackTrace();
+ }
}
}
-
- throw new RuntimeException("unresolveable function name: "+name);
+ return newProcAddress;
}
}