diff options
author | Julien Gouesse <[email protected]> | 2014-08-16 14:48:41 +0200 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2014-08-16 14:48:41 +0200 |
commit | 0dc3fa467f39d7aac5f9b71436662d506390b168 (patch) | |
tree | 9308fcf4d903c9c132c49b02c50dca9319e37558 /ardor3d-jogl/src/main/java | |
parent | b66a1f5f1aa26de8f32f74150f0a42f7abeb44c8 (diff) |
Forces the use of OpenGL-ES 1 if possible when OpenGL-ES 2 is supported
Diffstat (limited to 'ardor3d-jogl/src/main/java')
-rw-r--r-- | ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java index 5a5fb95..a3b1975 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/CapsUtil.java @@ -27,6 +27,13 @@ public class CapsUtil { if (isForwardCompatible) { // Ardor3D doesn't support forward compatible yet profile = GLProfile.getMaxFixedFunc(true); + } else { + final boolean isES2orES3 = profile.isGLES2() || profile.isGLES3(); + // Ardor3D doesn't fully support ES 2.0 and later yet, favors ES 1 if possible + // FIXME remove this kludge when Ardor3D gets some VAO support + if (isES2orES3 && GLProfile.isAvailable(GLProfile.GLES1)) { + profile = GLProfile.get(GLProfile.GLES1); + } } return profile; } |