From 0cbc8d2a565197a9b0a74052d843587fe06d69eb Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Thu, 1 Feb 2024 15:23:54 -0500 Subject: [PATCH] OSX: Only look at major GL version when creating context (#16185) --- gfx/drivers_context/cocoa_gl_ctx.m | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/gfx/drivers_context/cocoa_gl_ctx.m b/gfx/drivers_context/cocoa_gl_ctx.m index 2449cadb2e..16f62b0f70 100644 --- a/gfx/drivers_context/cocoa_gl_ctx.m +++ b/gfx/drivers_context/cocoa_gl_ctx.m @@ -366,20 +366,14 @@ static bool cocoa_gl_gfx_ctx_set_video_mode(void *data, { case 3: #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 break; case 4: #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 break; }