summaryrefslogtreecommitdiff
path: root/src/mbgl/layer/custom_layer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/layer/custom_layer.cpp')
-rw-r--r--src/mbgl/layer/custom_layer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/layer/custom_layer.cpp b/src/mbgl/layer/custom_layer.cpp
index 39742ecad8..0b6de51e67 100644
--- a/src/mbgl/layer/custom_layer.cpp
+++ b/src/mbgl/layer/custom_layer.cpp
@@ -8,7 +8,8 @@ CustomLayer::CustomLayer(const std::string& id_,
CustomLayerInitializeFunction initializeFn_,
CustomLayerRenderFunction renderFn_,
CustomLayerDeinitializeFunction deinitializeFn_,
- void * context_) {
+ void* context_)
+ : StyleLayer(Type::Custom) {
id = id_;
initializeFn = initializeFn_;
renderFn = renderFn_;