OSX: Only look at major GL version when creating context (#16185)

This commit is contained in:
Eric Warmenhoven 2024-02-01 15:23:54 -05:00 committed by GitHub
parent 9e6b790f19
commit 0cbc8d2a56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 10 deletions

View File

@ -366,20 +366,14 @@ static bool cocoa_gl_gfx_ctx_set_video_mode(void *data,
{ {
case 3: case 3:
#if MAC_OS_X_VERSION_10_7 #if MAC_OS_X_VERSION_10_7
if (g_gl_minor >= 1 && g_gl_minor <= 3) /* OpenGL 3.2 Core */ attributes[6] = NSOpenGLPFAOpenGLProfile;
{ attributes[7] = NSOpenGLProfileVersion3_2Core;
attributes[6] = NSOpenGLPFAOpenGLProfile;
attributes[7] = NSOpenGLProfileVersion3_2Core;
}
#endif #endif
break; break;
case 4: case 4:
#if MAC_OS_X_VERSION_10_10 #if MAC_OS_X_VERSION_10_10
if (g_gl_minor == 1) /* OpenGL 4.1 Core */ attributes[6] = NSOpenGLPFAOpenGLProfile;
{ attributes[7] = NSOpenGLProfileVersion4_1Core;
attributes[6] = NSOpenGLPFAOpenGLProfile;
attributes[7] = NSOpenGLProfileVersion4_1Core;
}
#endif #endif
break; break;
} }