aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/egl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-06-25 05:50:55 +0000
committerSven Gothel <[email protected]>2008-06-25 05:50:55 +0000
commitb02adebb3213e19aecfe84e6966e52976e5c09cf (patch)
tree6435fdac5e3ccad90ae1e96b684e56d79fb57bcf /src/classes/com/sun/opengl/impl/egl
parent800c7da4656277810d579e76b74558434bb6467c (diff)
Native Compilation: Partitioning and X11 clean
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1680 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/egl')
-rwxr-xr-xsrc/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java b/src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java
index a796aa01c..9ba2a0c40 100755
--- a/src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java
+++ b/src/classes/com/sun/opengl/impl/egl/EGLDrawableFactory.java
@@ -41,9 +41,6 @@ import com.sun.opengl.impl.*;
import com.sun.gluegen.runtime.NativeLibrary;
public class EGLDrawableFactory extends GLDrawableFactoryImpl {
- static {
- NativeLibLoader.loadCore();
- }
// We need more than one of these on certain devices (the NVidia APX 2500 in particular)
private List/*<NativeLibrary>*/ glesLibraries;
@@ -70,9 +67,11 @@ public class EGLDrawableFactory extends GLDrawableFactoryImpl {
if (GLProfile.isGLES2()) {
glesLibNames.add("libGLESv2_CM");
glesLibNames.add("GLESv2_CM");
- } else {
+ } else if (GLProfile.isGLES1()) {
glesLibNames.add("libGLESv1_CM");
glesLibNames.add("GLESv1_CM");
+ } else {
+ throw new GLException("Invalid GL Profile for EGL: "+GLProfile.getProfile());
}
ClassLoader loader = getClass().getClassLoader();
@@ -94,6 +93,12 @@ public class EGLDrawableFactory extends GLDrawableFactoryImpl {
libs.add(eglLib);
}
glesLibraries = libs;
+
+ if (GLProfile.isGLES2()) {
+ NativeLibLoader.loadES2();
+ } else if (GLProfile.isGLES1()) {
+ NativeLibLoader.loadES1();
+ }
}
public AbstractGraphicsConfiguration chooseGraphicsConfiguration(GLCapabilities capabilities,