diff options
author | Sven Gothel <[email protected]> | 2009-06-12 12:41:28 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-06-12 12:41:28 +0000 |
commit | e4e5516064376384fe83a5bb94aa30f90a683aee (patch) | |
tree | 28237b93bf5717c0dc55b3920e80fc64ffd9800c /src/jogl/classes | |
parent | 2bcbaedd3be76960f6cdce40bd650ce58f9078c5 (diff) |
MacOSX: Exception for GL3 profile .. no OpenGL 3.1 implementation yet
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1933 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/jogl/classes')
-rw-r--r-- | src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java b/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java index 897ed9e98..b424e9516 100644 --- a/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java +++ b/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXCGLContext.java @@ -113,6 +113,9 @@ public abstract class MacOSXCGLContext extends GLContextImpl MacOSXCGLGraphicsConfiguration config = (MacOSXCGLGraphicsConfiguration) drawable.getNativeWindow().getGraphicsConfiguration().getNativeGraphicsConfiguration(); GLCapabilities capabilities = (GLCapabilities)config.getRequestedCapabilities(); GLProfile glProfile = capabilities.getGLProfile(); + if(glProfile.isGL3()) { + throw new GLException("GL3 profile currently not supported on MacOSX, due to the lack of a OpenGL 3.1 implementation"); + } // FIXME: Shall being moved to MacOSXCGLGraphicsConfiguration ! int[] viewNotReady = new int[1]; int[] iattribs = new int[128]; |