Skip to content

Commit

Permalink
glewinfo fixup for MacOS core context mode with version>4.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
nigels-com committed Jul 31, 2017
1 parent 1fe2ca4 commit 3a8eff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto/src/glewinfo_tail.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 3a8eff7

Please sign in to comment.