diff options
Diffstat (limited to 'drape_frontend/path_text_shape.cpp')
-rw-r--r-- | drape_frontend/path_text_shape.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drape_frontend/path_text_shape.cpp b/drape_frontend/path_text_shape.cpp index efd476ff4d..57b3d3fbb5 100644 --- a/drape_frontend/path_text_shape.cpp +++ b/drape_frontend/path_text_shape.cpp @@ -87,6 +87,7 @@ void PathTextShape::DrawPathTextPlain(ref_ptr<dp::TextureManager> textures, RenderState::OverlayLayer); state.SetProgram3d(layout->GetFixedHeight() > 0 ? gpu::Program::TextFixedBillboard : gpu::Program::TextBillboard); + state.SetDepthTestEnabled(m_params.m_depthTestEnabled); state.SetColorTexture(color.GetTexture()); state.SetMaskTexture(layout->GetMaskTexture()); @@ -125,6 +126,7 @@ void PathTextShape::DrawPathTextOutlined(ref_ptr<dp::TextureManager> textures, auto state = CreateGLState(gpu::Program::TextOutlined, RenderState::OverlayLayer); state.SetProgram3d(gpu::Program::TextOutlinedBillboard); + state.SetDepthTestEnabled(m_params.m_depthTestEnabled); state.SetColorTexture(color.GetTexture()); state.SetMaskTexture(layout->GetMaskTexture()); |