diff options
author | Leith Bade <leith@mapbox.com> | 2015-01-18 16:33:39 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2015-01-18 16:33:39 +1100 |
commit | 016c2948c5e5d0f49c6169bd5802b54747c60312 (patch) | |
tree | 0bc1c8968ddf78e26ed21f8dd1217873bad3c2da /platform | |
parent | 4540a8ae83fb219e1166d31ebd3cbbe1f2937993 (diff) | |
parent | 9b2c8d0391a0f06d65e34a87279973d191035015 (diff) | |
download | qtlocation-mapboxgl-016c2948c5e5d0f49c6169bd5802b54747c60312.tar.gz |
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-mason
Conflicts:
src/mbgl/map/map.cpp
Diffstat (limited to 'platform')
-rw-r--r-- | platform/default/glfw_view.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index 1118bc23a7..e8197dabcd 100644 --- a/platform/default/glfw_view.cpp +++ b/platform/default/glfw_view.cpp @@ -188,7 +188,11 @@ void GLFWView::key(GLFWwindow *window, int key, int /*scancode*/, int action, in case GLFW_KEY_R: if (!mods) { view->map->setDefaultTransitionDuration(300); - view->map->toggleClass("night"); + if (view->map->hasClass("night")) { + view->map->removeClass("night"); + } else { + view->map->addClass("night"); + } } break; case GLFW_KEY_N: @@ -286,6 +290,9 @@ int GLFWView::run() { glfwWaitEvents(); }); + // Terminate here to save binary shaders + map->terminate(); + return 0; } |