diff options
Diffstat (limited to 'src/mbgl/renderer/render_custom_layer.cpp')
-rw-r--r-- | src/mbgl/renderer/render_custom_layer.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mbgl/renderer/render_custom_layer.cpp b/src/mbgl/renderer/render_custom_layer.cpp index d89fa7bba2..0f22bc8780 100644 --- a/src/mbgl/renderer/render_custom_layer.cpp +++ b/src/mbgl/renderer/render_custom_layer.cpp @@ -4,9 +4,12 @@ namespace mbgl { -RenderCustomLayer::RenderCustomLayer(const style::CustomLayer::Impl& _impl) - : RenderLayer(style::LayerType::Custom, _impl), - impl(&_impl) { +RenderCustomLayer::RenderCustomLayer(Immutable<style::CustomLayer::Impl> _impl) + : RenderLayer(style::LayerType::Custom, _impl) { +} + +const style::CustomLayer::Impl& RenderCustomLayer::impl() const { + return static_cast<const style::CustomLayer::Impl&>(*baseImpl); } std::unique_ptr<RenderLayer> RenderCustomLayer::clone() const { |