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:
authorExMix <rahuba.youri@mapswithme.com>2014-01-10 14:07:55 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:10:03 +0300
commiteda6e6901b4c717aa110205c329ea8d3f28a0503 (patch)
treec72edfcc2df20a504043861e8080dffe2417b7d1 /drape_head
parent4a9ad53ee7b5381518362aedb80c4f7d93022ed3 (diff)
[drape] correct destruction
Diffstat (limited to 'drape_head')
-rw-r--r--drape_head/drape_surface.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/drape_head/drape_surface.cpp b/drape_head/drape_surface.cpp
index 8aec497169..e3adbbe396 100644
--- a/drape_head/drape_surface.cpp
+++ b/drape_head/drape_surface.cpp
@@ -21,6 +21,7 @@ DrapeSurface::DrapeSurface()
DrapeSurface::~DrapeSurface()
{
+ m_drapeEngine.Destroy();
m_contextFactory.Destroy();
}
@@ -34,6 +35,7 @@ void DrapeSurface::exposeEvent(QExposeEvent *e)
{
m_contextFactory = MasterPointer<QtOGLContextFactory>(new QtOGLContextFactory(this));
CreateEngine();
+ m_drapeEngine->SetAngle(0.0);
}
}
}
@@ -60,6 +62,8 @@ void DrapeSurface::CreateEngine()
m_drapeEngine = MasterPointer<df::DrapeEngine>(
new df::DrapeEngine(f , devicePixelRatio(), width(), height()));
+ sizeChanged(0);
+
m_timerID = startTimer(1000 / 30);
}