summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-10-12 12:07:08 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-10-12 19:01:08 +0300
commita6d0e21472faf853e61388c17a5ff931ac04e2c5 (patch)
tree11457f1be0266b3e014e42994ba7ed85c7e1467f /src
parentd00a32fe664f6a8f1d7c22d9f331c3dbd8a6f797 (diff)
downloadqtlocation-mapboxgl-a6d0e21472faf853e61388c17a5ff931ac04e2c5.tar.gz
[core] Disable stencil test when rendering collision boxes
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/renderer/painter_symbol.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mbgl/renderer/painter_symbol.cpp b/src/mbgl/renderer/painter_symbol.cpp
index ca77215618..2ed6facad8 100644
--- a/src/mbgl/renderer/painter_symbol.cpp
+++ b/src/mbgl/renderer/painter_symbol.cpp
@@ -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();