diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-07-17 17:16:51 +0300 |
---|---|---|
committer | Ivo van Dongen <info@ivovandongen.nl> | 2017-07-17 20:35:43 +0200 |
commit | f290c6ddfb5ad0358a6c7ba38ab12420f4441ad8 (patch) | |
tree | 71fd86391b2ee2471c0cf78a8aeadfcdebcbcfaf | |
parent | 9d0bd9622ede5bca0763e650834a20a1fcab6eb4 (diff) | |
download | qtlocation-mapboxgl-f290c6ddfb5ad0358a6c7ba38ab12420f4441ad8.tar.gz |
[glfw] fix animations
-rw-r--r-- | platform/glfw/glfw_view.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index 122b7208c9..7a65dc9117 100644 --- a/platform/glfw/glfw_view.cpp +++ b/platform/glfw/glfw_view.cpp @@ -496,13 +496,14 @@ void GLFWView::run() { glfwPollEvents(); if (dirty && rendererFrontend) { + dirty = false; const double started = glfwGetTime(); if (animateRouteCallback) animateRouteCallback(map); activate(); - mbgl::BackendScope scope { *this, mbgl::BackendScope::ScopeType::Implicit }; + mbgl::BackendScope guard { *this, getScopeType() }; rendererFrontend->render(); @@ -513,7 +514,6 @@ void GLFWView::run() { invalidate(); } - dirty = false; } }; |