[core] Disable stencil test when rendering collision boxes

This commit is contained in:
Bruno de Oliveira Abinader
2016-10-12 12:07:08 +03:00
parent d00a32fe66
commit a6d0e21472

View File

@@ -251,9 +251,7 @@ void Painter::renderSymbol(PaintParameters& parameters,
}
if (bucket.hasCollisionBoxData()) {
context.stencilOp = { gl::StencilTestOperation::Keep, gl::StencilTestOperation::Keep,
gl::StencilTestOperation::Replace };
context.stencilTest = true;
context.stencilTest = false;
auto& collisionBoxShader = shaders->collisionBox;
context.program = collisionBoxShader.getID();