empty global rect optimization.

This commit is contained in:
rachytski 2010-12-08 01:43:39 +02:00 committed by Alex Zolotarev
parent 832148406a
commit 5e2eeab724

View file

@ -279,7 +279,7 @@ void RenderQueueRoutine::Do()
if ((areas[i].SizeX() != 0) && (areas[i].SizeY() != 0))
{
frameScreen.PtoG(m2::Inflate<double>(m2::RectD(areas[i]), 30 * m_visualScale, 30 * m_visualScale), glbRect);
if ((glbRect.SizeX() == 0) || (glbRect.SizeY()))
if ((glbRect.SizeX() == 0) || (glbRect.SizeY() == 0))
continue;
m_threadDrawer->screen()->setClipRect(areas[i]);