summaryrefslogtreecommitdiff
path: root/platform/glfw/glfw_view.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-02-10 11:23:15 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-02-10 17:55:57 +0100
commite66f050b99984b23261bb49c770e76ad571ad558 (patch)
tree047a15f1626596cba3a64ced5c33155c8d5715d7 /platform/glfw/glfw_view.cpp
parentb1e623246f3dd6339f9e182fb5650bb4d7060059 (diff)
downloadqtlocation-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.cpp2
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