fixed symbol rendering in RenderPolicyMT.

This commit is contained in:
rachytski 2012-08-29 12:14:10 +03:00 committed by Alex Zolotarev
parent d5d7e0e67c
commit 260c03b25f

View file

@ -78,6 +78,8 @@ namespace yg
m2::PointD posPt = tieRect(m2::RectD(texRect), m);
#ifdef USING_GLSL
posPt -= pivot();
r->drawStraightTexturedPolygon(pivot(),
@ -85,6 +87,17 @@ namespace yg
posPt.x, posPt.y, posPt.x + texRect.SizeX(), posPt.y + texRect.SizeY(),
yg::maxDepth,
style->m_pipelineID);
#else
r->drawTexturedPolygon(m2::PointD(0.0, 0.0), 0.0,
texRect.minX(), texRect.minY(), texRect.maxX(), texRect.maxY(),
posPt.x, posPt.y, posPt.x + texRect.SizeX(), posPt.y + texRect.SizeY(),
yg::maxDepth,
style->m_pipelineID);
#endif
}
int SymbolElement::visualRank() const