summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-04-15 22:18:16 +0300
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-15 12:18:16 -0700
commita2a6e22bddb6fa6c94742fb976d3bded04661b1a (patch)
tree647d1818c64b29305f0aaf54223f188bd3942718 /platform
parentd51944fbea029f734e8937f4262a1f28bc68d6f7 (diff)
downloadqtlocation-mapboxgl-a2a6e22bddb6fa6c94742fb976d3bded04661b1a.tar.gz
[glfw] Workaround for OS X (#4666)
Diffstat (limited to 'platform')
-rw-r--r--platform/default/glfw_view.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp
index 768e55ca32..bdadaa6f36 100644
--- a/platform/default/glfw_view.cpp
+++ b/platform/default/glfw_view.cpp
@@ -448,7 +448,11 @@ void GLFWView::run() {
};
frameTick.start(mbgl::Duration::zero(), mbgl::Milliseconds(1000 / 60), callback);
+#if defined(__APPLE__)
+ while (!glfwWindowShouldClose(window)) runLoop.run();
+#else
runLoop.run();
+#endif
}
float GLFWView::getPixelRatio() const {