mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user