From 260c03b25fa8880f8e7bf71084b230d880cd3dfd Mon Sep 17 00:00:00 2001 From: rachytski Date: Wed, 29 Aug 2012 12:14:10 +0300 Subject: [PATCH] fixed symbol rendering in RenderPolicyMT. --- yg/symbol_element.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/yg/symbol_element.cpp b/yg/symbol_element.cpp index e3904559fa..98642b9453 100644 --- a/yg/symbol_element.cpp +++ b/yg/symbol_element.cpp @@ -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