From 2bf46093aa45a5948c200a7e83b130a636a7cd37 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 22 Aug 2011 20:39:58 +0200 Subject: Also tackles bug 510, only lookup global on Android. See gluegen commit 58469fd2343039c195a88d0b171ba9af2dce40be --- .../jogamp/opengl/egl/EGLDynamicLibraryBundleInfo.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLDynamicLibraryBundleInfo.java b/src/jogl/classes/jogamp/opengl/egl/EGLDynamicLibraryBundleInfo.java index 4182c4666..137599650 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLDynamicLibraryBundleInfo.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLDynamicLibraryBundleInfo.java @@ -28,6 +28,7 @@ package jogamp.opengl.egl; +import com.jogamp.common.os.AndroidVersion; import com.jogamp.common.os.DynamicLookupHelper; import com.jogamp.common.os.NativeLibrary; import com.jogamp.common.os.Platform; @@ -61,8 +62,14 @@ public abstract class EGLDynamicLibraryBundleInfo extends GLDynamicLibraryBundle /** Might be a desktop GL library, and might need to allow symbol access to subsequent libs */ public boolean shallLinkGlobal() { return true; } - public boolean shallLookupGlobal() { return true; } - + public boolean shallLookupGlobal() { + if ( AndroidVersion.isAvailable ) { + // Android requires global symbol lookup + return true; + } + // default behavior for other platforms + return false; + } public final List getToolGetProcAddressFuncNameList() { List res = new ArrayList(); -- cgit v1.2.3