diff options
author | Sven Gothel <[email protected]> | 2010-04-22 21:15:48 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-22 21:15:48 +0200 |
commit | 012fca06f2539db232f0183f72187ec2f8ca54f5 (patch) | |
tree | 9be1bcc206c0e1a85f50d43a6ae9dba07b11ec04 /src/jogl/classes/javax | |
parent | 26b0449cbc7db9961af92397f79e2b85f79ddb24 (diff) |
Review of using isGL2() and GL2.GL*
Diffstat (limited to 'src/jogl/classes/javax')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLContext.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLContext.java b/src/jogl/classes/javax/media/opengl/GLContext.java index e5b499af9..2709dd506 100644 --- a/src/jogl/classes/javax/media/opengl/GLContext.java +++ b/src/jogl/classes/javax/media/opengl/GLContext.java @@ -378,6 +378,10 @@ public abstract class GLContext { return ctxMajorVersion>=1 && CTX_PROFILE_COMPAT==(ctxOptions & (CTX_PROFILE_COMPAT|CTX_PROFILE_ES)); } + public final boolean isGL2GL3() { + return isGL2() || isGL3(); + } + public final boolean isGLES1() { return ctxMajorVersion==1 && CTX_PROFILE_ES==(ctxOptions & CTX_PROFILE_ES); } @@ -395,11 +399,7 @@ public abstract class GLContext { } public final boolean isGL2ES2() { - return isGL2() || isGL3() || isGLES2() ; - } - - public final boolean isGL2GL3() { - return isGL2() || isGL3(); + return isGL2GL3() || isGLES2() ; } public final boolean hasGLSL() { |