summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnsis Brammanis <ansis@mapbox.com>2017-10-25 16:05:14 -0400
committerChris Loer <chris.loer@gmail.com>2017-10-31 10:25:57 -0700
commit592071c8caaeed84970182993d7b16b510a8b0b3 (patch)
treea9917359bc399d51034dfd786a6203af9b6bbc67
parent33b5a841346128f451b85424fd3fe50678c6cc43 (diff)
downloadqtlocation-mapboxgl-592071c8caaeed84970182993d7b16b510a8b0b3.tar.gz
fix collision box opacity [skip ci]
-rw-r--r--src/mbgl/text/placement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/text/placement.cpp b/src/mbgl/text/placement.cpp
index c1562f61bc..9379d0072f 100644
--- a/src/mbgl/text/placement.cpp
+++ b/src/mbgl/text/placement.cpp
@@ -239,8 +239,8 @@ void Placement::updateBucketOpacities(SymbolBucket& bucket, gl::Context& context
}
}
};
- updateCollisionBox(symbolInstance.textCollisionFeature, symbolInstance.placedText);
- updateCollisionBox(symbolInstance.iconCollisionFeature, symbolInstance.placedIcon);
+ updateCollisionBox(symbolInstance.textCollisionFeature, opacityState.text.targetOpacity == 1.0);
+ updateCollisionBox(symbolInstance.iconCollisionFeature, opacityState.icon.targetOpacity == 1.0);
}
if (bucket.hasTextData()) context.updateVertexBuffer(*bucket.text.opacityVertexBuffer, std::move(bucket.text.opacityVertices));