diff options
Diffstat (limited to 'src/mbgl/renderer/painter_line.cpp')
-rw-r--r-- | src/mbgl/renderer/painter_line.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mbgl/renderer/painter_line.cpp b/src/mbgl/renderer/painter_line.cpp index 4658812ef3..ee749746b9 100644 --- a/src/mbgl/renderer/painter_line.cpp +++ b/src/mbgl/renderer/painter_line.cpp @@ -20,11 +20,12 @@ void Painter::renderLine(PaintParameters& parameters, // Abort early. if (pass == RenderPass::Opaque) return; - context.stencilOp.reset(); - context.stencilTest = GL_TRUE; - context.depthFunc.reset(); - context.depthTest = GL_TRUE; - context.depthMask = GL_FALSE; + context.stencilOp = { gl::StencilTestOperation::Keep, gl::StencilTestOperation::Keep, + gl::StencilTestOperation::Replace }; + context.stencilTest = true; + context.depthFunc = gl::DepthTestFunction::LessEqual; + context.depthTest = true; + context.depthMask = false; const auto& properties = layer.impl->paint; const auto& layout = bucket.layout; |