From a9439fa3ecd366c419815959daedc030f4b8b4e1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 31 Jul 2009 20:47:32 -0700 Subject: Fix: GL2ES1 mapping to GL2ES12 if available --- src/jogl/classes/javax/media/opengl/GLProfile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/jogl/classes/javax') diff --git a/src/jogl/classes/javax/media/opengl/GLProfile.java b/src/jogl/classes/javax/media/opengl/GLProfile.java index 8b23bed04..756c80009 100644 --- a/src/jogl/classes/javax/media/opengl/GLProfile.java +++ b/src/jogl/classes/javax/media/opengl/GLProfile.java @@ -768,10 +768,10 @@ public class GLProfile implements Cloneable { */ private static String computeProfileImpl(String profile) { if (GL2ES1.equals(profile)) { - if(hasGL2Impl) { - return GL2; - } else if(hasGL2ES12Impl) { + if(hasGL2ES12Impl) { return GL2ES12; + } else if(hasGL2Impl) { + return GL2; } else if(hasGLES1Impl) { return GLES1; } -- cgit v1.2.3