summaryrefslogtreecommitdiff
path: root/src/mbgl/gl
diff options
context:
space:
mode:
authorGali Nelle <galinelle.mapbox@gmail.com>2020-04-16 17:05:35 +0300
committergalinelle <paolo.angelelli@mapbox.com>2020-04-20 14:22:08 +0300
commitad543e43556dc350b7c30f510439f85a3be424a6 (patch)
tree5af7f3d15e2678a65a8c5d39e952b7243756b08a /src/mbgl/gl
parent9d23917de195dd8ec07b90497b7cec8ecb7db508 (diff)
downloadqtlocation-mapboxgl-ad543e43556dc350b7c30f510439f85a3be424a6.tar.gz
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.
Diffstat (limited to 'src/mbgl/gl')
-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,