diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-01-24 22:08:17 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-01-25 14:46:43 +0100 |
commit | b5bc4fd8b470cfe4198206e75c713dd71a22ffaa (patch) | |
tree | 5f49429fcc3d1a1ad9712b7ebe42e22f56560505 /platform/darwin/src | |
parent | af0ff55f166506137d3b5de861594519beb1729a (diff) | |
download | qtlocation-mapboxgl-b5bc4fd8b470cfe4198206e75c713dd71a22ffaa.tar.gz |
[macos] allow using the integrated GPU on dual-GPU machines
Diffstat (limited to 'platform/darwin/src')
-rw-r--r-- | platform/darwin/src/headless_display_cgl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/darwin/src/headless_display_cgl.cpp b/platform/darwin/src/headless_display_cgl.cpp index 90d187d3db..b38eb6b62c 100644 --- a/platform/darwin/src/headless_display_cgl.cpp +++ b/platform/darwin/src/headless_display_cgl.cpp @@ -20,6 +20,8 @@ HeadlessDisplay::Impl::Impl() { CGLPixelFormatAttribute attributes[] = { kCGLPFAOpenGLProfile, static_cast<CGLPixelFormatAttribute>(kCGLOGLPVersion_Legacy), + kCGLPFASupportsAutomaticGraphicsSwitching, + kCGLPFAAllowOfflineRenderers, // Allows using the integrated GPU static_cast<CGLPixelFormatAttribute>(0) }; |