Merge pull request #5369 from rokuz/fixed-traffic-and-route-depths

Fixed depth test for traffic and route
This commit is contained in:
Daria Volvenkova 2017-02-07 13:10:04 +03:00 committed by GitHub
commit 4920a7cce5

View file

@ -1198,6 +1198,7 @@ void FrontendRenderer::RenderTrafficAndRouteLayer(ScreenBase const & modelView)
m_trafficRenderer->RenderTraffic(modelView, m_currentZoomLevel, 1.0f /* opacity */,
make_ref(m_gpuProgramManager), m_generalUniforms);
}
GLFunctions::glClearDepth();
m_routeRenderer->RenderRoute(modelView, m_trafficRenderer->HasRenderData(),
make_ref(m_gpuProgramManager), m_generalUniforms);
}