diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2017-07-25 11:50:10 +0300 |
---|---|---|
committer | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2017-07-25 12:01:16 +0300 |
commit | edceb6e014497036ae7501faf1d012143f417bd1 (patch) | |
tree | 9b1e0babcd5f838954ffec926ea918422d88145d | |
parent | 2eb4868f96fa86a19620e20edfecbc626ce0661f (diff) |
[RELEASE ONLY] Fixed black screen on Android 4.1-4.2beta-926
-rwxr-xr-x | drape_frontend/frontend_renderer.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drape_frontend/frontend_renderer.cpp b/drape_frontend/frontend_renderer.cpp index e4c783665e..fcb9eccf9a 100755 --- a/drape_frontend/frontend_renderer.cpp +++ b/drape_frontend/frontend_renderer.cpp @@ -1200,10 +1200,13 @@ void FrontendRenderer::Render3dLayer(ScreenBase const & modelView, bool useFrame ASSERT(m_buildingsFramebuffer->IsSupported(), ()); m_buildingsFramebuffer->Enable(); GLFunctions::glClearColor(0.0f, 0.0f, 0.0f, 0.0f); - GLFunctions::glClear(gl_const::GLColorBit); + GLFunctions::glClear(gl_const::GLColorBit | gl_const::GLDepthBit); + } + else + { + GLFunctions::glClear(gl_const::GLDepthBit); } - GLFunctions::glClear(gl_const::GLDepthBit); GLFunctions::glEnable(gl_const::GLDepthTest); RenderLayer & layer = m_layers[RenderLayer::Geometry3dID]; layer.Sort(make_ref(m_overlayTree)); |