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
Mesa
mesa
Commits
9a00dd97
Commit
9a00dd97
authored
Jun 11, 2011
by
Jeremy Huddleston Sequoia
Browse files
apple: Request OpenGL 3.2 from OpenGL.framework if available
Signed-off-by:
Jeremy Huddleston
<
jeremyhu@apple.com
>
parent
df1dacf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/glx/apple/apple_visual.c
View file @
9a00dd97
...
...
@@ -40,10 +40,19 @@
#include
<OpenGL/OpenGL.h>
#include
<OpenGL/CGLContext.h>
#include
<OpenGL/CGLRenderers.h>
#include
<OpenGL/CGLTypes.h>
#undef glTexImage1D
#undef glTexImage2D
#undef glTexImage3D
#ifndef kCGLPFAOpenGLProfile
#define kCGLPFAOpenGLProfile 99
#endif
#ifndef kCGLOGLPVersion_3_2_Core
#define kCGLOGLPVersion_3_2_Core 0x3200
#endif
#include
"apple_cgl.h"
#include
"apple_visual.h"
#include
"apple_glx.h"
...
...
@@ -64,6 +73,12 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m
GLint
vsref
=
0
;
CGLError
error
=
0
;
/* Request an OpenGL 3.2 profile if one is available */
if
(
apple_cgl
.
version_major
>
1
||
(
apple_cgl
.
version_major
==
1
&&
apple_cgl
.
version_minor
>=
3
))
{
attr
[
numattr
++
]
=
kCGLPFAOpenGLProfile
;
attr
[
numattr
++
]
=
kCGLOGLPVersion_3_2_Core
;
}
if
(
offscreen
)
{
apple_glx_diagnostic
(
"offscreen rendering enabled. Using kCGLPFAOffScreen
\n
"
);
...
...
Bugzilla Migration User
@bugzilla-migration
mentioned in issue
#694
·
Sep 18, 2019
mentioned in issue
#694
mentioned in issue #694
Toggle commit list
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