From 5b77b3c5c9c55eec45c145dd61965393f159103b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 31 Aug 2013 07:35:47 +0200 Subject: GLContext: Add missing 'isGLESProfile()' and fix 'isGLcore()', i.e. GL2ES2 -> GLES2 (in profile set) --- src/jogl/classes/javax/media/opengl/GLContext.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes/javax/media/opengl') diff --git a/src/jogl/classes/javax/media/opengl/GLContext.java b/src/jogl/classes/javax/media/opengl/GLContext.java index f30f85213..0c5459b57 100644 --- a/src/jogl/classes/javax/media/opengl/GLContext.java +++ b/src/jogl/classes/javax/media/opengl/GLContext.java @@ -729,6 +729,7 @@ public abstract class GLContext { public final VersionNumberString getGLVendorVersionNumber() { return ctxVendorVersion; } public final boolean isGLCompatibilityProfile() { return ( 0 != ( CTX_PROFILE_COMPAT & ctxOptions ) ); } public final boolean isGLCoreProfile() { return ( 0 != ( CTX_PROFILE_CORE & ctxOptions ) ); } + public final boolean isGLESProfile() { return ( 0 != ( CTX_PROFILE_ES & ctxOptions ) ); } public final boolean isGLForwardCompatible() { return ( 0 != ( CTX_OPTION_FORWARD & ctxOptions ) ); } public final boolean isGLDebugEnabled() { return ( 0 != ( CTX_OPTION_DEBUG & ctxOptions ) ); } public final boolean isCreatedWithARBMethod() { return ( 0 != ( CTX_IS_ARB_CREATED & ctxOptions ) ); } @@ -994,7 +995,7 @@ public abstract class GLContext { } /** - * Indicates whether this GLContext uses a GL core profile.

Includes [ GL4, GL3, GLES3, GL2ES2 ].

+ * Indicates whether this GLContext uses a GL core profile.

Includes [ GL4, GL3, GLES3, GLES2 ].

*/ public final boolean isGLcore() { return ( 0 != ( ctxOptions & CTX_PROFILE_ES ) && ctxVersion.getMajor() >= 2 ) || -- cgit v1.2.3