updated to jogl-2.1-b1115, gluegen-2.1-b735 for OSX 10.9 support

This commit is contained in:
codeanticode
2013-10-25 09:39:33 -04:00
parent 0ff68bca2f
commit e10ffbc5e2

View File

@@ -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) {