aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 {