Fixes after rebasing

This commit is contained in:
r.kuznetsov 2015-06-09 15:33:10 +03:00
parent 82d87dc5e1
commit cd0dc231ad
2 changed files with 5 additions and 4 deletions

View file

@ -501,14 +501,15 @@ void FrontendRenderer::RenderScene(ScreenBase const & modelView)
SelectionShape::ESelectedObject selectedObject = m_selectionShape->GetSelectedObject();
if (selectedObject == SelectionShape::OBJECT_MY_POSITION)
{
GLFunctions::glClearDepth();
m_myPositionController->Render(modelView, make_ref(m_gpuProgramManager), m_generalUniforms);
m_routeRenderer->Render(modelView, make_ref(m_gpuProgramManager), m_generalUniforms);
ASSERT(m_myPositionController->IsModeHasPosition(), ());
m_selectionShape->SetPosition(m_myPositionController->Position());
m_selectionShape->Render(modelView, make_ref(m_gpuProgramManager), m_generalUniforms);
}
else if (selectedObject == SelectionShape::OBJECT_POI)
m_selectionShape->Render(modelView, make_ref(m_gpuProgramManager), m_generalUniforms);
}
m_routeRenderer->Render(modelView, make_ref(m_gpuProgramManager), m_generalUniforms);
m_myPositionController->Render(modelView, make_ref(m_gpuProgramManager), m_generalUniforms);
for (; currentRenderGroup < m_renderGroups.size(); ++currentRenderGroup)

View file

@ -30,7 +30,7 @@ public:
CompassInfo,
GpsInfo,
FindVisiblePOI,
SelectObject
SelectObject,
GetMyPosition,
AddRoute,
RemoveRoute,