forked from organicmaps/organicmaps-tmp
Selected POI rendering fixed.
This commit is contained in:
parent
62a01db30d
commit
e6eabf5f0b
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue