Selected POI rendering fixed.

This commit is contained in:
Daria Volvenkova 2015-12-02 16:13:08 +03:00
parent 62a01db30d
commit e6eabf5f0b

View file

@ -748,18 +748,19 @@ void FrontendRenderer::RenderScene(ScreenBase const & modelView)
m_myPositionController->Render(MyPositionController::RenderAccuracy,
modelView, make_ref(m_gpuProgramManager), m_generalUniforms);
GLFunctions::glEnable(gl_const::GLDepthTest);
if (isPerspective)
GLFunctions::glClearDepth();
for (; currentRenderGroup < m_renderGroups.size(); ++currentRenderGroup)
{
drape_ptr<RenderGroup> const & group = m_renderGroups[currentRenderGroup];
RenderSingleGroup(modelView, make_ref(group));
}
GLFunctions::glClearDepth();
GLFunctions::glDisable(gl_const::GLDepthTest);
if (m_selectionShape != nullptr && m_selectionShape->GetSelectedObject() == SelectionShape::OBJECT_USER_MARK)
m_selectionShape->Render(modelView, make_ref(m_gpuProgramManager), m_generalUniforms);
GLFunctions::glDisable(gl_const::GLDepthTest);
m_routeRenderer->RenderRoute(modelView, make_ref(m_gpuProgramManager), m_generalUniforms);
for (drape_ptr<UserMarkRenderGroup> const & group : m_userMarkRenderGroups)