diff options
author | Sven Gothel <[email protected]> | 2013-07-16 20:52:53 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-07-16 20:52:53 +0200 |
commit | 87ebce459700e602d596302825d3ee6ac7145d40 (patch) | |
tree | f96dd6d2d9ef61f2e7b68f288a2a830216da0565 /src/jogl/classes/javax/media/opengl/GLContext.java | |
parent | 1a20ef3aa1dc9acedd7da0475ee19d4c40b18498 (diff) |
Fix GLContext.isGLES3CompatAvailable(..) API doc and reorder query (from commit 1a20ef3aa1dc9acedd7da0475ee19d4c40b18498)
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLContext.java')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLContext.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLContext.java b/src/jogl/classes/javax/media/opengl/GLContext.java index 0cf04d119..f36061c13 100644 --- a/src/jogl/classes/javax/media/opengl/GLContext.java +++ b/src/jogl/classes/javax/media/opengl/GLContext.java @@ -1741,7 +1741,7 @@ public abstract class GLContext { * i.e. either a ≥ 4.3 context or a ≥ 3.1 context supporting <code>GL_ARB_ES3_compatibility</code>, * otherwise false. * <p> - * Includes [ GL4 > 4.3, GL3 > 3.1 w/ GL_ARB_ES3_compatibility and GLES3 ]. + * Includes [ GL ≥ 4.3, GL ≥ 3.1 w/ GL_ARB_ES3_compatibility and GLES3 ] * </p> */ public static final boolean isGLES3CompatibleAvailable(AbstractGraphicsDevice device) { @@ -1750,12 +1750,12 @@ public abstract class GLContext { int ctp[] = { 0 }; boolean ok; - ok = GLContext.getAvailableGLVersion(device, 3, GLContext.CTX_PROFILE_CORE, major, minor, ctp); + ok = GLContext.getAvailableGLVersion(device, 3, GLContext.CTX_PROFILE_ES, major, minor, ctp); if( !ok ) { - ok = GLContext.getAvailableGLVersion(device, 3, GLContext.CTX_PROFILE_COMPAT, major, minor, ctp); + ok = GLContext.getAvailableGLVersion(device, 3, GLContext.CTX_PROFILE_CORE, major, minor, ctp); } if( !ok ) { - ok = GLContext.getAvailableGLVersion(device, 3, GLContext.CTX_PROFILE_ES, major, minor, ctp); + ok = GLContext.getAvailableGLVersion(device, 3, GLContext.CTX_PROFILE_COMPAT, major, minor, ctp); } return 0 != ( ctp[0] & CTX_IMPL_ES3_COMPAT ); } |