aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/native/macosx/MacOSXWindowSystemInterface.m
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-26 12:50:44 +0200
committerSven Gothel <[email protected]>2011-10-26 12:50:44 +0200
commitf326119fd60eb3a851317bbed5bd57a535816014 (patch)
treebbe8cd14ed7c2e883a90818fb9303bc7d73001f1 /src/jogl/native/macosx/MacOSXWindowSystemInterface.m
parent82c7c16b6298a5a781c9721edb8b81d7ec2aaf81 (diff)
OSX: Enable OpenGL profile support, ie OpenGL 3.2 -> GL3 for OSX >= 10.7
Diffstat (limited to 'src/jogl/native/macosx/MacOSXWindowSystemInterface.m')
-rw-r--r--src/jogl/native/macosx/MacOSXWindowSystemInterface.m8
1 files changed, 8 insertions, 0 deletions
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 <OpenGL/gl.h>
#import <OpenGL/CGLTypes.h>
#import <jni.h>
+
+#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: