diff --git a/libs/drape_frontend/arrow3d.cpp b/libs/drape_frontend/arrow3d.cpp index d76340757..a758c3dea 100644 --- a/libs/drape_frontend/arrow3d.cpp +++ b/libs/drape_frontend/arrow3d.cpp @@ -306,11 +306,6 @@ Arrow3d::Arrow3d(ref_ptr context, ref_ptrGetApiVersion(); - if (apiVersion == dp::ApiVersion::OpenGLES3) - m_state.SetColorTexture(texMng->GetSymbolsTexture()); - m_isValid = preloadedData.m_meshData.has_value(); // Init arrow mesh. diff --git a/libs/drape_frontend/backend_renderer.cpp b/libs/drape_frontend/backend_renderer.cpp index 8faecca5d..861b89749 100644 --- a/libs/drape_frontend/backend_renderer.cpp +++ b/libs/drape_frontend/backend_renderer.cpp @@ -387,7 +387,7 @@ void BackendRenderer::AcceptMessage(ref_ptr message) drape_ptr data = make_unique_dp(); data->m_pointsCount = msg->GetPointsCount(); CHECK(m_context != nullptr, ()); - CirclesPackShape::Draw(m_context, m_texMng, *data.get()); + CirclesPackShape::Draw(m_context, *data.get()); m_commutator->PostMessage(ThreadsCommutator::RenderThread, make_unique_dp( std::move(data), msg->GetDestination()), diff --git a/libs/drape_frontend/circles_pack_shape.cpp b/libs/drape_frontend/circles_pack_shape.cpp index 31fb0e376..d0f2b9999 100644 --- a/libs/drape_frontend/circles_pack_shape.cpp +++ b/libs/drape_frontend/circles_pack_shape.cpp @@ -28,10 +28,9 @@ struct CirclesPackStaticVertex TNormal m_normal; }; -dp::RenderState GetCirclesPackState(ref_ptr texMng) +dp::RenderState GetCirclesPackState() { auto state = CreateRenderState(gpu::Program::CirclePoint, DepthLayer::OverlayLayer); - state.SetColorTexture(texMng->GetSymbolsTexture()); state.SetDepthTestEnabled(false); return state; } @@ -139,8 +138,7 @@ size_t CirclesPackHandle::GetPointsCount() const return m_buffer.size() / dp::Batcher::VertexPerQuad; } -void CirclesPackShape::Draw(ref_ptr context, ref_ptr texMng, - CirclesPackRenderData & data) +void CirclesPackShape::Draw(ref_ptr context, CirclesPackRenderData & data) { ASSERT_NOT_EQUAL(data.m_pointsCount, 0, ()); @@ -178,7 +176,7 @@ void CirclesPackShape::Draw(ref_ptr context, ref_ptrFlush(); diff --git a/libs/drape_frontend/circles_pack_shape.hpp b/libs/drape_frontend/circles_pack_shape.hpp index baf033da8..fa92a8d01 100644 --- a/libs/drape_frontend/circles_pack_shape.hpp +++ b/libs/drape_frontend/circles_pack_shape.hpp @@ -69,7 +69,6 @@ private: class CirclesPackShape { public: - static void Draw(ref_ptr context, ref_ptr texMng, - CirclesPackRenderData & data); + static void Draw(ref_ptr context, CirclesPackRenderData & data); }; } // namespace df diff --git a/libs/drape_frontend/route_builder.cpp b/libs/drape_frontend/route_builder.cpp index c65a158a6..f8c0f0f2a 100644 --- a/libs/drape_frontend/route_builder.cpp +++ b/libs/drape_frontend/route_builder.cpp @@ -29,8 +29,7 @@ void RouteBuilder::Build(ref_ptr context, dp::DrapeID subro ASSERT(!subroute->m_style.empty(), ()); for (size_t styleIndex = 0; styleIndex < subroute->m_style.size(); ++styleIndex) { - subrouteData.push_back(RouteShape::CacheRoute(context, subrouteId, subroute, - styleIndex, recacheId, textures)); + subrouteData.push_back(RouteShape::CacheRoute(context, subrouteId, subroute, styleIndex, recacheId)); } auto markersData = RouteShape::CacheMarkers(context, subrouteId, subroute, recacheId, textures); diff --git a/libs/drape_frontend/route_shape.cpp b/libs/drape_frontend/route_shape.cpp index 59e70f04f..47bb9f644 100644 --- a/libs/drape_frontend/route_shape.cpp +++ b/libs/drape_frontend/route_shape.cpp @@ -539,8 +539,7 @@ void RouteShape::CacheRouteArrows(ref_ptr context, drape_ptr RouteShape::CacheRoute(ref_ptr context, dp::DrapeID subrouteId, SubrouteConstPtr subroute, - size_t styleIndex, int recacheId, - ref_ptr textures) + size_t styleIndex, int recacheId) { size_t startIndex; size_t endIndex; @@ -596,7 +595,6 @@ drape_ptr RouteShape::CacheRoute(ref_ptr auto state = CreateRenderState(subroute->m_style[styleIndex].m_pattern.m_isDashed ? gpu::Program::RouteDash : gpu::Program::Route, DepthLayer::GeometryLayer); - state.SetColorTexture(textures->GetSymbolsTexture()); for (auto & data : geometryBufferData) { diff --git a/libs/drape_frontend/route_shape.hpp b/libs/drape_frontend/route_shape.hpp index 0380d5441..74e3d5d6a 100644 --- a/libs/drape_frontend/route_shape.hpp +++ b/libs/drape_frontend/route_shape.hpp @@ -208,8 +208,7 @@ public: static drape_ptr CacheRoute(ref_ptr context, dp::DrapeID subrouteId, SubrouteConstPtr subroute, - size_t styleIndex, int recacheId, - ref_ptr textures); + size_t styleIndex, int recacheId); static drape_ptr CacheMarkers(ref_ptr context, dp::DrapeID subrouteId,