summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mbgl/renderer/renderer_impl.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mbgl/renderer/renderer_impl.cpp b/src/mbgl/renderer/renderer_impl.cpp
index 306c18759c..129925bd9a 100644
--- a/src/mbgl/renderer/renderer_impl.cpp
+++ b/src/mbgl/renderer/renderer_impl.cpp
@@ -299,13 +299,8 @@ void Renderer::Impl::render(const UpdateParameters& updateParameters) {
RenderLayer* layer = getRenderLayer(layerImpl->id);
assert(layer);
- if (!parameters.staticData.has3D && (
- layer->is<RenderFillExtrusionLayer>() ||
- layer->is<RenderHillshadeLayer>() ||
- layer->is<RenderHeatmapLayer>())) {
-
- parameters.staticData.has3D = true;
- }
+ parameters.staticData.has3D |=
+ (layerImpl->getTypeInfo()->pass3d == LayerTypeInfo::Pass3D::Required);
if (!layer->needsRendering(zoomHistory.lastZoom)) {
continue;