diff options
author | Sven Gothel <sgothel@jausoft.com> | 2011-07-31 20:35:55 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2011-07-31 20:35:55 +0200 |
commit | 502c51bc5a549a79d03249863261af59aedeaeb3 (patch) | |
tree | 2ab7f6bc4c860c6c5a43124079fe77d340b92161 /src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java | |
parent | 8a456e30f400fff6bc9983fed5b10e561f4f3ddc (diff) |
EGL: Set CTX_PROFILE_ES2_COMPAT if ES2; Allow any native device; Don't use libGL.so; Cosmetics
EGL: Set CTX_PROFILE_ES2_COMPAT if ES2;
Allow any native device for EGL
- EGLDrawableFactory::getIsDeviceCompatible() -> true always,
impl. shall handle all native windowing toolkit layers, if available.
Don't use libGL.so
- desktop GL library is exclusive for desktop bindings
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java index b6599de1b..45d286da3 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java @@ -49,7 +49,6 @@ import java.util.HashMap; import java.util.List; public class EGLDrawableFactory extends GLDrawableFactoryImpl { - private static final GLDynamicLookupHelper eglES1DynamicLookupHelper; private static final GLDynamicLookupHelper eglES2DynamicLookupHelper; @@ -121,10 +120,7 @@ public class EGLDrawableFactory extends GLDrawableFactoryImpl { } public final boolean getIsDeviceCompatible(AbstractGraphicsDevice device) { - if(device instanceof EGLGraphicsDevice) { - return true; - } - return false; + return true; // via mappings (X11/WGL/.. -> EGL) we shall be able to handle all types. } private SharedResource getOrCreateShared(AbstractGraphicsDevice device) { |