fixed deadlock bug.

This commit is contained in:
rachytski 2011-09-11 14:30:01 +03:00 committed by Alex Zolotarev
parent f5c46f6c08
commit d78bbb9321

View file

@ -45,7 +45,6 @@ m2::RectI const RenderPolicyMT::OnSize(int w, int h)
void RenderPolicyMT::BeginFrame()
{
m_renderQueue.renderState().m_mutex->Lock();
}
void RenderPolicyMT::EndFrame()
@ -63,6 +62,8 @@ void RenderPolicyMT::DrawFrame(shared_ptr<PaintEvent> const & e,
e->drawer()->screen()->clear(bgColor());
m_renderQueue.renderState().m_mutex->Lock();
if (m_renderQueue.renderState().m_actualTarget.get() != 0)
{
m2::PointD ptShift = m_renderQueue.renderState().coordSystemShift(false);