summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGali Nelle <galinelle.mapbox@gmail.com>2020-04-16 17:05:35 +0300
committerGali Nelle <galinelle.mapbox@gmail.com>2020-04-20 11:25:23 +0300
commitabfd1c87dafb95cf4515da5226ac12635d2d50a6 (patch)
treec218530c0a7a7b9703cd820e76a374295bd40622
parent0d0ae229eb1d2078fe7fac5bb22dc8ea909f9014 (diff)
downloadqtlocation-mapboxgl-upstream/galinelle_layerManagerLogging.tar.gz
Add a name to CustomLayer LayerTypeInfoupstream/galinelle_layerManagerLogging
This to prevent confusion and enable proper error logging when registering layers with missing name in LayerTypeInfo where the name should instead be present.
-rw-r--r--src/mbgl/gl/custom_layer.cpp2
1 files changed, 1 insertions, 1 deletions
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,