summaryrefslogtreecommitdiff
path: root/test/gl/context.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/gl/context.test.cpp')
-rw-r--r--test/gl/context.test.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/gl/context.test.cpp b/test/gl/context.test.cpp
index 770434c5be..9c709b7597 100644
--- a/test/gl/context.test.cpp
+++ b/test/gl/context.test.cpp
@@ -91,9 +91,10 @@ TEST(GLContextMode, Shared) {
util::RunLoop loop;
- HeadlessFrontend frontend { 1, gfx::ContextMode::Shared };
+ HeadlessFrontend frontend{1, gfx::HeadlessBackend::SwapBehaviour::NoFlush, gfx::ContextMode::Shared};
- Map map(frontend, MapObserver::nullObserver(),
+ Map map(frontend,
+ MapObserver::nullObserver(),
MapOptions().withMapMode(MapMode::Static).withSize(frontend.getSize()),
ResourceOptions().withCachePath(":memory:").withAssetPath("test/fixtures/api/assets"));
map.getStyle().loadJSON(util::read_file("test/fixtures/api/water.json"));
@@ -118,5 +119,5 @@ TEST(GLContextMode, Shared) {
MBGL_CHECK_ERROR(glDrawArrays(GL_TRIANGLE_STRIP, 0, 3));
}
- test::checkImage("test/fixtures/shared_context", frontend.render(map), 0.5, 0.1);
+ test::checkImage("test/fixtures/shared_context", frontend.render(map).image, 0.5, 0.1);
}