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
path: root/map
diff options
context:
space:
mode:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2016-10-06 14:29:15 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2016-10-06 14:29:15 +0300
commitd9bfed50214fd706abcd78cdd88dbec74c3e5615 (patch)
treee81a3f6109ec50151a6bf395ae3489e807f5f80c /map
parentd487f11baa9d61b59bb6e41c2639fbd320fb0a8a (diff)
Setting visible viewport on the drape engine creation.
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 3bd858f5d7..410803c7f7 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -1595,6 +1595,8 @@ void Framework::CreateDrapeEngine(ref_ptr<dp::OGLContextFactory> contextFactory,
Allow3dMode(allow3d, allow3dBuildings);
LoadViewport();
+ SetVisibleViewport(m2::RectD(0, 0, params.m_surfaceWidth, params.m_surfaceHeight));
+
// In case of the engine reinitialization recover route.
if (m_routingSession.IsActive())
{