Merge pull request #4446 from darina/visible-viewport-android-fix

Setting visible viewport on the drape engine creation.
This commit is contained in:
Roman Kuznetsov 2016-10-06 14:30:55 +03:00 committed by GitHub
commit 5daf456e7a

View file

@ -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())
{