From f326119fd60eb3a851317bbed5bd57a535816014 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 26 Oct 2011 12:50:44 +0200 Subject: OSX: Enable OpenGL profile support, ie OpenGL 3.2 -> GL3 for OSX >= 10.7 --- src/jogl/native/macosx/MacOSXWindowSystemInterface.m | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/jogl/native/macosx/MacOSXWindowSystemInterface.m') diff --git a/src/jogl/native/macosx/MacOSXWindowSystemInterface.m b/src/jogl/native/macosx/MacOSXWindowSystemInterface.m index bff7d38e2..751fba9c0 100644 --- a/src/jogl/native/macosx/MacOSXWindowSystemInterface.m +++ b/src/jogl/native/macosx/MacOSXWindowSystemInterface.m @@ -18,6 +18,11 @@ #import #import #import + +#ifndef CGL_VERSION_1_3 + #warning this SDK doesn't support OpenGL profile +#endif + #import "ContextUpdater.h" #import "macosx-window-system.h" @@ -409,6 +414,9 @@ void* createPixelFormat(int* iattrs, int niattrs, int* ivalues) { } break; +#ifdef CGL_VERSION_1_3 + case kCGLPFAOpenGLProfile: +#endif case NSOpenGLPFAColorSize: case NSOpenGLPFAAlphaSize: case NSOpenGLPFADepthSize: -- cgit v1.2.3