[core] Reset GL values when needed

This commit is contained in:
Bruno de Oliveira Abinader
2015-11-06 19:55:37 +02:00
parent 8894982625
commit 5ef5d08867
7 changed files with 29 additions and 2 deletions

View File

@@ -17,7 +17,9 @@ void Painter::renderLine(LineBucket& bucket, const LineLayer& layer, const TileI
// Abort early.
if (pass == RenderPass::Opaque) return;
config.stencilOp.reset();
config.stencilTest = GL_TRUE;
config.depthFunc.reset();
config.depthTest = GL_TRUE;
config.depthMask = GL_FALSE;