diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-01-25 10:58:47 +0100 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2017-01-26 08:01:03 -0800 |
commit | e35c1f8c87354bb20f9485efa4e0d77ea5bf35b1 (patch) | |
tree | f4188e0a75f3a0784ccc052b6e3a0753e3c8ef57 /platform/macos/src | |
parent | b826d043d01060acd96e568706f94cfab9163df6 (diff) | |
download | qtlocation-mapboxgl-e35c1f8c87354bb20f9485efa4e0d77ea5bf35b1.tar.gz |
[macos] align HeadlessDisplay with SDK OpenGL context creation options
Cherry-picked from 2a077eaa5483b243e817a328adaea1027a48e7a7.
Diffstat (limited to 'platform/macos/src')
-rw-r--r-- | platform/macos/src/MGLOpenGLLayer.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/macos/src/MGLOpenGLLayer.mm b/platform/macos/src/MGLOpenGLLayer.mm index 523b585055..654fa4f2bc 100644 --- a/platform/macos/src/MGLOpenGLLayer.mm +++ b/platform/macos/src/MGLOpenGLLayer.mm @@ -24,6 +24,7 @@ - (NSOpenGLPixelFormat *)openGLPixelFormatForDisplayMask:(uint32_t)mask { NSOpenGLPixelFormatAttribute pfas[] = { + NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersionLegacy, NSOpenGLPFAAccelerated, NSOpenGLPFAClosestPolicy, NSOpenGLPFAAccumSize, 32, |