forked from organicmaps/organicmaps
Merge pull request #1394 from VladiMihaylenko/vm-master
[omim] Fixed map style change's crash.
This commit is contained in:
commit
3e52146577
2 changed files with 3 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
|||
#include "drape/utils/gpu_mem_tracker.hpp"
|
||||
#include "drape/utils/projection.hpp"
|
||||
|
||||
#include "indexer/classificator_loader.hpp"
|
||||
#include "indexer/scales.hpp"
|
||||
#include "indexer/drawing_rules.hpp"
|
||||
|
||||
|
@ -427,6 +428,8 @@ void FrontendRenderer::AcceptMessage(ref_ptr<Message> message)
|
|||
blocker.Wait();
|
||||
}
|
||||
|
||||
classificator::Load();
|
||||
|
||||
// Invalidate textures and wait for completion.
|
||||
{
|
||||
BaseBlockingMessage::Blocker blocker;
|
||||
|
|
|
@ -1398,8 +1398,6 @@ void Framework::SetMapStyle(MapStyle mapStyle)
|
|||
Settings::Set(kMapStyleKey, static_cast<int>(mapStyle));
|
||||
GetStyleReader().SetCurrentStyle(mapStyle);
|
||||
|
||||
classificator::Load();
|
||||
drule::LoadRules();
|
||||
CallDrapeFunction(bind(&df::DrapeEngine::UpdateMapStyle, _1));
|
||||
|
||||
InvalidateUserMarks();
|
||||
|
|
Loading…
Add table
Reference in a new issue