Source

pysdl-cffi / utils / sdl-osx-gl3.2.patch

Full commit
diff -r 9612bcd79130 src/video/cocoa/SDL_cocoaopengl.m
--- a/src/video/cocoa/SDL_cocoaopengl.m	Sun Aug 12 23:10:16 2012 -0700
+++ b/src/video/cocoa/SDL_cocoaopengl.m	Tue Nov 06 09:58:04 2012 +0100
@@ -92,6 +92,13 @@
     attr[i++] = NSOpenGLPFADepthSize;
     attr[i++] = _this->gl_config.depth_size;
 
+    if (_this->gl_config.major_version == 3 &&
+        _this->gl_config.minor_version == 2)
+    {
+        attr[i++] = NSOpenGLPFAOpenGLProfile;
+        attr[i++] = NSOpenGLProfileVersion3_2Core;
+    }
+
     if (_this->gl_config.double_buffer) {
         attr[i++] = NSOpenGLPFADoubleBuffer;
     }