From abfd1c87dafb95cf4515da5226ac12635d2d50a6 Mon Sep 17 00:00:00 2001 From: Gali Nelle Date: Thu, 16 Apr 2020 17:05:35 +0300 Subject: Add a name to CustomLayer LayerTypeInfo This to prevent confusion and enable proper error logging when registering layers with missing name in LayerTypeInfo where the name should instead be present. --- src/mbgl/gl/custom_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/gl/custom_layer.cpp b/src/mbgl/gl/custom_layer.cpp index bb87868d78..47d1e6ea87 100644 --- a/src/mbgl/gl/custom_layer.cpp +++ b/src/mbgl/gl/custom_layer.cpp @@ -7,7 +7,7 @@ namespace mbgl { namespace style { namespace { -const LayerTypeInfo typeInfoCustom{"", +const LayerTypeInfo typeInfoCustom{"custom", LayerTypeInfo::Source::NotRequired, LayerTypeInfo::Pass3D::NotRequired, LayerTypeInfo::Layout::NotRequired, -- cgit v1.2.1