Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Maik Froechtenicht
glew
Commits
3a8eff77
Commit
3a8eff77
authored
Jul 31, 2017
by
Nigel Stewart
Browse files
glewinfo fixup for MacOS core context mode with version>4.0+
parent
1fe2ca4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
auto/src/glewinfo_tail.c
View file @
3a8eff77
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment