summaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2011-07-31 19:33:04 +0200
committerSven Gothel <sgothel@jausoft.com>2011-07-31 19:33:04 +0200
commit43ca6eea35ed06b462f609bd5704d9499c678927 (patch)
treef092509ee4ffc5888b50424fb7d9c367f2454d4b /src/jogl
parent2ce5d42eba3f1941141ad687498fd3955be942a5 (diff)
GLDrawableFactory::getFactoryImpl(): Only return the EGL factory if profile is native ES
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLDrawableFactory.java13
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 {