summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-05-18 14:08:10 -0700
committerAnsis Brammanis <brammanis@gmail.com>2017-07-11 09:10:23 -0700
commit2ee59796fb47c3152b2bdcfa5cde4be5a92316b4 (patch)
treea3af2995dbcdd00b3d0ab2584f106d614c7efa2c
parent7b29b90e7fb379ca4f592e98fd3144d424937632 (diff)
downloadqtlocation-mapboxgl-2ee59796fb47c3152b2bdcfa5cde4be5a92316b4.tar.gz
[core] Enable tile clipping for collision boxes.
Necessary because collision boxes now change shape based on while tile they're part of.
-rw-r--r--src/mbgl/renderer/painters/painter_symbol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/renderer/painters/painter_symbol.cpp b/src/mbgl/renderer/painters/painter_symbol.cpp
index 2d91ff41ad..c358d78b80 100644
--- a/src/mbgl/renderer/painters/painter_symbol.cpp
+++ b/src/mbgl/renderer/painters/painter_symbol.cpp
@@ -145,7 +145,7 @@ void Painter::renderSymbol(PaintParameters& parameters,
context,
gl::Lines { 1.0f },
gl::DepthMode::disabled(),
- gl::StencilMode::disabled(),
+ stencilModeForClipping(tile.clip),
colorModeForRenderPass(),
CollisionBoxProgram::UniformValues {
uniforms::u_matrix::Value{ tile.matrix },