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