summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 08add2b27e..32a09ad73e 100644
--- a/src/mbgl/text/placement.cpp
+++ b/src/mbgl/text/placement.cpp
@@ -231,8 +231,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));