From 3a8eff77da3658c13fbd3634c943d5251d76322c Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Mon, 31 Jul 2017 20:23:56 +1000 Subject: [PATCH] glewinfo fixup for MacOS core context mode with version>4.0+ --- auto/src/glewinfo_tail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/src/glewinfo_tail.c b/auto/src/glewinfo_tail.c index f8b292a2..4d455382 100644 --- a/auto/src/glewinfo_tail.c +++ b/auto/src/glewinfo_tail.c @@ -434,7 +434,7 @@ GLboolean glewCreateContext (struct createParams *params) #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 if (params->profile & GL_CONTEXT_CORE_PROFILE_BIT) { - if (params->major==3 && params->minor>=2) + if ((params->major==3 && params->minor>=2) || params->major>3) { contextAttrs[i++] = kCGLPFAOpenGLProfile; /* OSX 10.7 Lion onwards */ contextAttrs[i++] = (CGLPixelFormatAttribute) kCGLOGLPVersion_3_2_Core; /* 3.2 Core Context */