From 965e383b5d37ed834829118790cda17eec76f15a Mon Sep 17 00:00:00 2001 From: gohai Date: Mon, 27 Jul 2015 17:19:57 +0200 Subject: [PATCH] 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. --- core/src/processing/opengl/PSurfaceJOGL.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/processing/opengl/PSurfaceJOGL.java b/core/src/processing/opengl/PSurfaceJOGL.java index 89135ddb6..1f72a94b3 100644 --- a/core/src/processing/opengl/PSurfaceJOGL.java +++ b/core/src/processing/opengl/PSurfaceJOGL.java @@ -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); }