Created
January 27, 2020 11:28
-
-
Save dimitrijer/8cfe918ac8f15e0a2c8073e572dc5174 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/video/quartz/SDL_QuartzGL.m b/src/video/quartz/SDL_QuartzGL.m | |
index 22f292c..a842488 100644 | |
--- a/src/video/quartz/SDL_QuartzGL.m | |
+++ b/src/video/quartz/SDL_QuartzGL.m | |
@@ -44,6 +44,7 @@ | |
#if (MAC_OS_X_VERSION_MAX_ALLOWED < 1070) | |
#define NSOpenGLPFAOpenGLProfile ((NSOpenGLPixelFormatAttribute) 99) | |
#define NSOpenGLProfileVersion3_2Core ((NSOpenGLPixelFormatAttribute) 12800) | |
+#define NSOpenGLProfileVersion4_1Core ((NSOpenGLPixelFormatAttribute) 16640) | |
#endif | |
#ifdef __powerpc__ /* we lost this in 10.6, which has no PPC support. */ | |
@@ -137,7 +138,7 @@ int QZ_SetupOpenGL (_THIS, int bpp, Uint32 flags) { | |
if ( flags & SDL_OPENGLCORE ) { | |
attr[i++] = NSOpenGLPFAOpenGLProfile; | |
- attr[i++] = NSOpenGLProfileVersion3_2Core; | |
+ attr[i++] = NSOpenGLProfileVersion4_1Core; | |
} | |
attr[i] = 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment