Request GL2ES2 instead of GL2ES1 on ARM

Based on discussion with xranby & discussed with Andres. Current Processing needs shader support so select GLES2 over GLES1. This shouldn't matter for any desktop GPU since we're using a GL there any anyway.
This commit is contained in:
gohai
2015-07-27 17:19:57 +02:00
parent ee58ba38ad
commit 965e383b5d
+7 -1
View File
@@ -195,7 +195,13 @@ public class PSurfaceJOGL implements PSurface {
if (profile == null) {
if (PJOGL.profile == 2) {
try {
profile = GLProfile.getGL2ES1();
if ("arm".equals(System.getProperty("os.arch"))) {
// request at least GL2 or GLES2
profile = GLProfile.getGL2ES2();
} else {
// stay compatible with previous versions for now
profile = GLProfile.getGL2ES1();
}
} catch (GLException ex) {
profile = GLProfile.getMaxFixedFunc(true);
}