From e10ffbc5e26b2f484da4f6ace4e8abdbf05e5719 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Fri, 25 Oct 2013 09:39:33 -0400 Subject: [PATCH] updated to jogl-2.1-b1115, gluegen-2.1-b735 for OSX 10.9 support --- core/src/processing/opengl/PJOGL.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/core/src/processing/opengl/PJOGL.java b/core/src/processing/opengl/PJOGL.java index 7868095d8..4d8ba4213 100644 --- a/core/src/processing/opengl/PJOGL.java +++ b/core/src/processing/opengl/PJOGL.java @@ -234,11 +234,23 @@ public class PJOGL extends PGL { protected void initSurface(int antialias) { if (profile == null) { if (PROFILE == 2) { - profile = GLProfile.getGL2ES1(); + try { + profile = GLProfile.getGL2ES1(); + } catch (GLException ex) { + profile = GLProfile.getMaxFixedFunc(true); + } } else if (PROFILE == 3) { - profile = GLProfile.getGL2GL3(); + try { + profile = GLProfile.getGL2GL3(); + } catch (GLException ex) { + profile = GLProfile.getMaxProgrammable(true); + } } else if (PROFILE == 4) { - profile = GLProfile.getGL4ES3(); + try { + profile = GLProfile.getGL4ES3(); + } catch (GLException ex) { + profile = GLProfile.getMaxProgrammable(true); + } } else throw new RuntimeException(UNSUPPORTED_GLPROF_ERROR); if (2 < PROFILE) {