diff options
Diffstat (limited to 'test/api/custom_layer.test.cpp')
-rw-r--r-- | test/api/custom_layer.test.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/api/custom_layer.test.cpp b/test/api/custom_layer.test.cpp index eb1d7e0d3a..0f6747c12e 100644 --- a/test/api/custom_layer.test.cpp +++ b/test/api/custom_layer.test.cpp @@ -96,14 +96,16 @@ TEST(CustomLayer, Basic) { map.getStyle().addLayer(std::make_unique<CustomLayer>( "custom", [] (void* context) { - reinterpret_cast<TestLayer*>(context)->initialize(); + reinterpret_cast<TestLayer*>(context)->initialize(); }, [] (void* context, const CustomLayerRenderParameters&) { - reinterpret_cast<TestLayer*>(context)->render(); + reinterpret_cast<TestLayer*>(context)->render(); }, [] (void* context) { - delete reinterpret_cast<TestLayer*>(context); - }, new TestLayer())); + delete reinterpret_cast<TestLayer*>(context); + }, + nullptr, + new TestLayer())); auto layer = std::make_unique<FillLayer>("landcover", "mapbox"); layer->setSourceLayer("landcover"); |