API links for OpenGL ES 3.0 (#1007)

Co-authored-by: mwilsnd <mwilsnd@gmail.com>
This commit is contained in:
Alex Cristici
2023-04-14 23:48:53 +03:00
committed by GitHub
parent 4828cc7a8b
commit 8ff6704fc4
19 changed files with 2216 additions and 311 deletions

View File

@@ -727,21 +727,6 @@ TEST(Map, AddLayer) {
test::checkImage("test/fixtures/map/add_layer", test.frontend.render(test.map).image);
}
TEST(Map, WithoutVAOExtension) {
if (gfx::Backend::GetType() != gfx::Backend::Type::OpenGL) {
return;
}
MapTest<MainResourceLoader> test{":memory:", "test/fixtures/api/assets"};
gfx::BackendScope scope { *test.frontend.getBackend() };
static_cast<gl::Context&>(test.frontend.getBackend()->getContext()).disableVAOExtension = true;
test.map.getStyle().loadJSON(util::read_file("test/fixtures/api/water.json"));
test::checkImage("test/fixtures/map/no_vao", test.frontend.render(test.map).image, 0.002);
}
TEST(Map, RemoveLayer) {
MapTest<> test;
@@ -1596,4 +1581,4 @@ TEST(Map, ObserveShaderRegistration) {
observedRegistry = false;
test.frontend.render(test.map);
EXPECT_EQ(observedRegistry, false);
}
}