Remove clear color changing.

This commit is contained in:
Daria Volvenkova 2015-12-21 13:28:34 +03:00
parent b36ecb3a0f
commit 4f21c7442b

View file

@ -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