Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit ad543e4

Browse files
Gali Nellegalinelle
Gali Nelle
authored andcommitted
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.
1 parent 9d23917 commit ad543e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mbgl/gl/custom_layer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace mbgl {
77
namespace style {
88

99
namespace {
10-
const LayerTypeInfo typeInfoCustom{"",
10+
const LayerTypeInfo typeInfoCustom{"custom",
1111
LayerTypeInfo::Source::NotRequired,
1212
LayerTypeInfo::Pass3D::NotRequired,
1313
LayerTypeInfo::Layout::NotRequired,

0 commit comments

Comments
 (0)