summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-07-16 20:52:53 +0200
committerSven Gothel <[email protected]>2013-07-16 20:52:53 +0200
commit87ebce459700e602d596302825d3ee6ac7145d40 (patch)
treef96dd6d2d9ef61f2e7b68f288a2a830216da0565 /src/jogl/classes/javax/media/opengl
parent1a20ef3aa1dc9acedd7da0475ee19d4c40b18498 (diff)
Fix GLContext.isGLES3CompatAvailable(..) API doc and reorder query (from commit 1a20ef3aa1dc9acedd7da0475ee19d4c40b18498)
Diffstat (limited to 'src/jogl/classes/javax/media/opengl')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLContext.java8
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 &ge; 4.3 context or a &ge; 3.1 context supporting <code>GL_ARB_ES3_compatibility</code>,
* otherwise false.
* <p>
- * Includes [ GL4 &gt; 4.3, GL3 &gt; 3.1 w/ GL_ARB_ES3_compatibility and GLES3 ].
+ * Includes [ GL &ge; 4.3, GL &ge; 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 );
}