Skip to content

Commit 0cbc8d2

Browse files
authored
OSX: Only look at major GL version when creating context (#16185)
1 parent 9e6b790 commit 0cbc8d2

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

gfx/drivers_context/cocoa_gl_ctx.m

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -366,20 +366,14 @@ static bool cocoa_gl_gfx_ctx_set_video_mode(void *data,
366366
{
367367
case 3:
368368
#if MAC_OS_X_VERSION_10_7
369-
if (g_gl_minor >= 1 && g_gl_minor <= 3) /* OpenGL 3.2 Core */
370-
{
371-
attributes[6] = NSOpenGLPFAOpenGLProfile;
372-
attributes[7] = NSOpenGLProfileVersion3_2Core;
373-
}
369+
attributes[6] = NSOpenGLPFAOpenGLProfile;
370+
attributes[7] = NSOpenGLProfileVersion3_2Core;
374371
#endif
375372
break;
376373
case 4:
377374
#if MAC_OS_X_VERSION_10_10
378-
if (g_gl_minor == 1) /* OpenGL 4.1 Core */
379-
{
380-
attributes[6] = NSOpenGLPFAOpenGLProfile;
381-
attributes[7] = NSOpenGLProfileVersion4_1Core;
382-
}
375+
attributes[6] = NSOpenGLPFAOpenGLProfile;
376+
attributes[7] = NSOpenGLProfileVersion4_1Core;
383377
#endif
384378
break;
385379
}

0 commit comments

Comments
 (0)