forked from organicmaps/organicmaps
Remove clear color changing.
This commit is contained in:
parent
b36ecb3a0f
commit
4f21c7442b
1 changed files with 1 additions and 3 deletions
|
@ -809,7 +809,6 @@ void FrontendRenderer::RenderScene(ScreenBase const & modelView)
|
|||
if (isPerspective && has3dAreas)
|
||||
{
|
||||
m_framebuffer->Enable();
|
||||
GLFunctions::glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
GLFunctions::glClear();
|
||||
GLFunctions::glClearDepth();
|
||||
|
||||
|
@ -820,7 +819,6 @@ void FrontendRenderer::RenderScene(ScreenBase const & modelView)
|
|||
if (group->GetState().GetProgram3dIndex() == gpu::AREA_3D_PROGRAM)
|
||||
RenderSingleGroup(modelView, make_ref(group));
|
||||
}
|
||||
RefreshBgColor();
|
||||
m_framebuffer->Disable();
|
||||
|
||||
GLFunctions::glDisable(gl_const::GLDepthTest);
|
||||
|
@ -932,7 +930,7 @@ void FrontendRenderer::RefreshBgColor()
|
|||
{
|
||||
uint32_t color = drule::rules().GetBgColor(df::GetDrawTileScale(m_userEventStream.GetCurrentScreen()));
|
||||
dp::Color c = dp::Extract(color, 255 - (color >> 24));
|
||||
GLFunctions::glClearColor(c.GetRedF(), c.GetGreenF(), c.GetBlueF(), 1.0f);
|
||||
GLFunctions::glClearColor(c.GetRedF(), c.GetGreenF(), c.GetBlueF(), 0.0f);
|
||||
}
|
||||
|
||||
int FrontendRenderer::GetCurrentZoomLevel() const
|
||||
|
|
Loading…
Add table
Reference in a new issue