mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Request programmable GL profile
This commit is contained in:
@@ -195,15 +195,9 @@ public class PSurfaceJOGL implements PSurface {
|
||||
if (profile == null) {
|
||||
if (PJOGL.profile == 2) {
|
||||
try {
|
||||
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();
|
||||
}
|
||||
profile = GLProfile.getGL2ES2();
|
||||
} catch (GLException ex) {
|
||||
profile = GLProfile.getMaxFixedFunc(true);
|
||||
profile = GLProfile.getMaxProgrammable(true);
|
||||
}
|
||||
} else if (PJOGL.profile == 3) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user