[glfw] Workaround for OS X (#4666)

This commit is contained in:
Bruno de Oliveira Abinader
2016-04-15 22:18:16 +03:00
committed by John Firebaugh
parent d51944fbea
commit a2a6e22bdd

View File

@@ -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 {