diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2018-10-29 14:29:16 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2018-10-30 16:23:31 +0200 |
commit | 99e1a8a3df1a08464d8529b6988c1665b87c7c8b (patch) | |
tree | 4d45675ef4b54d00d7ef2a4dccbc211522515dce /test/gl/context.test.cpp | |
parent | 2ef9580565e2125e07124d23c0bcf400c8736931 (diff) | |
download | qtlocation-mapboxgl-99e1a8a3df1a08464d8529b6988c1665b87c7c8b.tar.gz |
Remove style::Layer::is()/as()upstream/mikhail_drop_style_layer_cast
Diffstat (limited to 'test/gl/context.test.cpp')
-rw-r--r-- | test/gl/context.test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gl/context.test.cpp b/test/gl/context.test.cpp index 179ce5de53..2561c84591 100644 --- a/test/gl/context.test.cpp +++ b/test/gl/context.test.cpp @@ -94,7 +94,9 @@ TEST(GLContextMode, Shared) { map.setLatLngZoom({ 37.8, -122.5 }, 10); // Set transparent background layer. - map.getStyle().getLayer("background")->as<BackgroundLayer>()->setBackgroundColor( { { 1.0f, 0.0f, 0.0f, 0.5f } } ); + auto layer = map.getStyle().getLayer("background"); + ASSERT_EQ(LayerType::Background, layer->getType()); + static_cast<BackgroundLayer*>(layer)->setBackgroundColor( { { 1.0f, 0.0f, 0.0f, 0.5f } } ); { // Custom rendering outside of GL Native render loop. |