diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-02-10 11:23:15 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-02-10 17:55:57 +0100 |
commit | e66f050b99984b23261bb49c770e76ad571ad558 (patch) | |
tree | 047a15f1626596cba3a64ced5c33155c8d5715d7 /platform/glfw/glfw_view.cpp | |
parent | b1e623246f3dd6339f9e182fb5650bb4d7060059 (diff) | |
download | qtlocation-mapboxgl-e66f050b99984b23261bb49c770e76ad571ad558.tar.gz |
[glfw] use newer version that allows automated graphics switching on macOS
Diffstat (limited to 'platform/glfw/glfw_view.cpp')
-rw-r--r-- | platform/glfw/glfw_view.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index fdf82fda8f..0d83073952 100644 --- a/platform/glfw/glfw_view.cpp +++ b/platform/glfw/glfw_view.cpp @@ -42,6 +42,8 @@ GLFWView::GLFWView(bool fullscreen_, bool benchmark_) height = videoMode->height; } + glfwWindowHint(GLFW_COCOA_GRAPHICS_SWITCHING, GL_TRUE); + #ifdef DEBUG glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GL_TRUE); #endif |