diff options
author | Sven Gothel <[email protected]> | 2011-12-13 06:55:41 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-12-13 06:55:41 +0100 |
commit | 1122f20a73e1dd912839f860efc6fcbed8c89808 (patch) | |
tree | 33e03cb47d6b64edc015d860adda4008ab874a3a /src/jogl/classes/jogamp/opengl | |
parent | 38b4f89d9d1d3e101620b54e558e90b16e87d9b1 (diff) |
MacOSXCGLContext.isGLProfileSupported(): No GL3* on pre lion - early out
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java index 87ce199ec..166876b24 100644 --- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java +++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLContext.java @@ -95,7 +95,12 @@ public abstract class MacOSXCGLContext extends GLContextImpl // We exclude 3.0, since we would map it's core to GL2. Hence we force mapping 2.1 to GL2 if(3==major && 1<=minor && minor<=2) { // [3.1..3.2] -> GL3* + if(!isLionOrLater) { + // no GL3* on pre lion + return false; + } if(ctBwdCompat) { + // no compatibility profile on OS X return false; } return ctCore; |