diff options
author | Sven Gothel <[email protected]> | 2011-07-31 19:33:04 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-31 19:33:04 +0200 |
commit | 43ca6eea35ed06b462f609bd5704d9499c678927 (patch) | |
tree | f092509ee4ffc5888b50424fb7d9c367f2454d4b /src/jogl/classes | |
parent | 2ce5d42eba3f1941141ad687498fd3955be942a5 (diff) |
GLDrawableFactory::getFactoryImpl(): Only return the EGL factory if profile is native ES
Diffstat (limited to 'src/jogl/classes')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLDrawableFactory.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLDrawableFactory.java b/src/jogl/classes/javax/media/opengl/GLDrawableFactory.java index 73b2b3823..5fc977581 100644 --- a/src/jogl/classes/javax/media/opengl/GLDrawableFactory.java +++ b/src/jogl/classes/javax/media/opengl/GLDrawableFactory.java @@ -312,16 +312,15 @@ public abstract class GLDrawableFactory { protected static GLDrawableFactory getFactoryImpl(String glProfileImplName) throws GLException { if ( GLProfile.usesNativeGLES(glProfileImplName) ) { - if(null==eglFactory) throw new GLException("EGLDrawableFactory unavailable: "+glProfileImplName); + if(null==eglFactory) { + throw new GLException("No EGLDrawableFactory available for profile: "+glProfileImplName); + } return eglFactory; } - if(null!=nativeOSFactory) { - return nativeOSFactory; + if(null==nativeOSFactory) { + throw new GLException("No native platform GLDrawableFactory available for profile: "+glProfileImplName); } - if(null!=eglFactory) { - return eglFactory; - } - throw new GLException("No native platform GLDrawableFactory, nor EGLDrawableFactory available: "+glProfileImplName); + return nativeOSFactory; } protected static GLDrawableFactory getFactoryImpl(AbstractGraphicsDevice device) throws GLException { |