From adb5122c198a1b3890607d7d1e2ec4987d173523 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 23 Feb 2012 20:56:03 +0100 Subject: Fix GLProfile.isGL2ES2(): "isGL2() || isGL3()" -> "isGL2GL3()" .. was excluding: GL2GL3 common profile. --- src/jogl/classes/javax/media/opengl/GLProfile.java | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/javax/media/opengl/GLProfile.java b/src/jogl/classes/javax/media/opengl/GLProfile.java index 766bee881..86df385b2 100644 --- a/src/jogl/classes/javax/media/opengl/GLProfile.java +++ b/src/jogl/classes/javax/media/opengl/GLProfile.java @@ -920,57 +920,57 @@ public class GLProfile { return null != profileImpl ? profileImpl.getName() : getName(); } - /** Indicates whether this profile is capable of GL4bc. */ + /** Indicates whether this profile is capable of GL4bc.

Includes [ GL4bc ].

*/ public final boolean isGL4bc() { return GL4bc.equals(profile); } - /** Indicates whether this profile is capable of GL4. */ + /** Indicates whether this profile is capable of GL4.

Includes [ GL4bc, GL4 ].

*/ public final boolean isGL4() { return isGL4bc() || GL4.equals(profile); } - /** Indicates whether this profile is capable of GL3bc. */ + /** Indicates whether this profile is capable of GL3bc.

Includes [ GL4bc, GL3bc ].

*/ public final boolean isGL3bc() { return isGL4bc() || GL3bc.equals(profile); } - /** Indicates whether this profile is capable of GL3. */ + /** Indicates whether this profile is capable of GL3.

Includes [ GL4bc, GL4, GL3bc, GL3 ].

*/ public final boolean isGL3() { return isGL4() || isGL3bc() || GL3.equals(profile); } - /** Indicates whether this context is a GL2 context */ + /** Indicates whether this context is a GL2 context

Includes [ GL4bc, GL3bc, GL2 ].

*/ public final boolean isGL2() { return isGL3bc() || GL2.equals(profile); } - /** Indicates whether this profile is capable of GLES1. */ + /** Indicates whether this profile is capable of GLES1.

Includes [ GLES1 ].

*/ public final boolean isGLES1() { return GLES1.equals(profile); } - /** Indicates whether this profile is capable of GLES2. */ + /** Indicates whether this profile is capable of GLES2.

Includes [ GLES2 ].

*/ public final boolean isGLES2() { return GLES2.equals(profile); } - /** Indicates whether this profile is capable of GL2ES1. */ + /** Indicates whether this profile is capable of GL2ES1.

Includes [ GL4bc, GL3bc, GL2, GLES1, GL2ES1 ].

*/ public final boolean isGL2ES1() { - return GL2ES1.equals(profile) || isGL2() || isGLES1() ; + return GL2ES1.equals(profile) || isGLES1() || isGL2(); } - /** Indicates whether this profile is capable os GL2ES2. */ + /** Indicates whether this profile is capable os GL2ES2.

Includes [ GL4bc, GL4, GL3bc, GL3, GL2, GL2GL3, GL2ES2, GLES2 ].

*/ public final boolean isGL2ES2() { - return GL2ES2.equals(profile) || isGL2() || isGL3() || isGLES2() ; + return GL2ES2.equals(profile) || isGLES2() || isGL2GL3(); } - /** Indicates whether this profile is capable os GL2GL3. */ + /** Indicates whether this profile is capable os GL2GL3.

Includes [ GL4bc, GL4, GL3bc, GL3, GL2, GL2GL3 ].

*/ public final boolean isGL2GL3() { - return GL2GL3.equals(profile) || isGL2() || isGL3() ; + return GL2GL3.equals(profile) || isGL3() || isGL2(); } - /** Indicates whether this profile supports GLSL. */ + /** Indicates whether this profile supports GLSL, ie. {@link #isGL2ES2()}. */ public final boolean hasGLSL() { return isGL2ES2() ; } -- cgit v1.2.3