diff options
Diffstat (limited to 'drape_frontend/circle_shape.cpp')
-rw-r--r-- | drape_frontend/circle_shape.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drape_frontend/circle_shape.cpp b/drape_frontend/circle_shape.cpp index 3fd8fba4aa..537133d0b5 100644 --- a/drape_frontend/circle_shape.cpp +++ b/drape_frontend/circle_shape.cpp @@ -24,12 +24,13 @@ void CircleShape::Draw(ref_ptr<dp::Batcher> batcher, ref_ptr<dp::TextureManager> dp::TextureManager::ColorRegion region; textures->GetColorRegion(m_params.m_color, region); - glsl::vec2 colorPoint(glsl::ToVec2(region.GetTexRect().Center())); + glsl::vec2 const colorPoint(glsl::ToVec2(region.GetTexRect().Center())); + glsl::vec2 const pt = glsl::ToVec2(ConvertPt(m_pt, m_params.m_tileCenter, kShapeCoordScalar)); buffer_vector<gpu::SolidTexturingVertex, 22> vertexes; vertexes.push_back(gpu::SolidTexturingVertex { - glsl::vec4(glsl::ToVec2(m_pt), m_params.m_depth, 0.0f), + glsl::vec4(pt, m_params.m_depth, 0.0f), glsl::vec2(0.0f, 0.0f), colorPoint }); @@ -41,7 +42,7 @@ void CircleShape::Draw(ref_ptr<dp::Batcher> batcher, ref_ptr<dp::TextureManager> m2::PointD rotatedNormal = m2::Rotate(startNormal, (i) * etalonSector); vertexes.push_back(gpu::SolidTexturingVertex { - glsl::vec4(glsl::ToVec2(m_pt), m_params.m_depth, 0.0f), + glsl::vec4(pt, m_params.m_depth, 0.0f), glsl::ToVec2(rotatedNormal), colorPoint }); |