From 99e1a8a3df1a08464d8529b6988c1665b87c7c8b Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Mon, 29 Oct 2018 14:29:16 +0200 Subject: Remove style::Layer::is()/as() --- test/gl/context.test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/gl/context.test.cpp') 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()->setBackgroundColor( { { 1.0f, 0.0f, 0.0f, 0.5f } } ); + auto layer = map.getStyle().getLayer("background"); + ASSERT_EQ(LayerType::Background, layer->getType()); + static_cast(layer)->setBackgroundColor( { { 1.0f, 0.0f, 0.0f, 0.5f } } ); { // Custom rendering outside of GL Native render loop. -- cgit v1.2.1