From 8c1007f28396956d5ef83fbbbea78e910c1e53bd Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 6 Aug 2011 10:07:05 +0200 Subject: EGL/Android: Favor driver's EGL/ES native library - Using Android's fails FIXME: find proper solution, instead of using hardcoded and non-std lib names --- .../jogamp/opengl/egl/EGLES1DynamicLibraryBundleInfo.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/jogl/classes/jogamp/opengl/egl/EGLES1DynamicLibraryBundleInfo.java') diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLES1DynamicLibraryBundleInfo.java b/src/jogl/classes/jogamp/opengl/egl/EGLES1DynamicLibraryBundleInfo.java index 87d7d992f..8d59899f2 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLES1DynamicLibraryBundleInfo.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLES1DynamicLibraryBundleInfo.java @@ -29,6 +29,9 @@ package jogamp.opengl.egl; import java.util.*; + +import com.jogamp.common.os.Platform; + import jogamp.opengl.*; public class EGLES1DynamicLibraryBundleInfo extends EGLDynamicLibraryBundleInfo { @@ -40,6 +43,12 @@ public class EGLES1DynamicLibraryBundleInfo extends EGLDynamicLibraryBundleInfo List/**/ libNames = new ArrayList(); List/**/ glesLibNames = new ArrayList(); + + if(Platform.getOSType() == Platform.OSType.ANDROID) { + // using the android-EGL fails + glesLibNames.add("/system/lib/egl/libGLESv1_CM_POWERVR_SGX530_125.so"); + } + // try default generic names first glesLibNames.add("GLES_CM"); glesLibNames.add("GLES_CL"); -- cgit v1.2.3