forked from organicmaps/organicmaps
fixed symbol rendering in RenderPolicyMT.
This commit is contained in:
parent
d5d7e0e67c
commit
260c03b25f
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue