summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-08-22 20:39:58 +0200
committerSven Gothel <[email protected]>2011-08-22 20:39:58 +0200
commit2bf46093aa45a5948c200a7e83b130a636a7cd37 (patch)
tree25ecddd6543ac84f4c1b1a2b99e3056ecf788e5b /src/jogl/classes/jogamp/opengl
parent9f3812280c8a1f32996e08c42029d0c8750757cc (diff)
Also tackles bug 510, only lookup global on Android. See gluegen commit 58469fd2343039c195a88d0b171ba9af2dce40be
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r--src/jogl/classes/jogamp/opengl/egl/EGLDynamicLibraryBundleInfo.java11
1 files changed, 9 insertions, 2 deletions
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();