Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2019-09-09 15:38:32 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2019-09-09 15:42:57 +0300
commita0baea38f104f8d3fcbd92b4f59d547970f347ce (patch)
treebb77f0985b603c315cdfda45031ea02372d3ae96
parentd4d634bdcb9df0f676bf9552e6b71b8630b65ac7 (diff)
[android] Fixed switch map style via Settings
-rw-r--r--android/jni/com/mapswithme/maps/Framework.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/android/jni/com/mapswithme/maps/Framework.cpp b/android/jni/com/mapswithme/maps/Framework.cpp
index c890cebea0..c3af623dfd 100644
--- a/android/jni/com/mapswithme/maps/Framework.cpp
+++ b/android/jni/com/mapswithme/maps/Framework.cpp
@@ -418,7 +418,12 @@ void Framework::SetMapStyle(MapStyle mapStyle)
void Framework::MarkMapStyle(MapStyle mapStyle)
{
- m_work.MarkMapStyle(mapStyle);
+ // In case of Vulkan rendering we don't recreate geometry and textures data, so
+ // we need use SetMapStyle instead of MarkMapStyle in all cases.
+ if (m_vulkanContextFactory)
+ m_work.SetMapStyle(mapStyle);
+ else
+ m_work.MarkMapStyle(mapStyle);
}
MapStyle Framework::GetMapStyle() const