summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gl/context.test.cpp2
-rw-r--r--test/renderer/backend_scope.test.cpp5
-rw-r--r--test/text/local_glyph_rasterizer.test.cpp2
3 files changed, 6 insertions, 3 deletions
diff --git a/test/gl/context.test.cpp b/test/gl/context.test.cpp
index 4e41af55d1..b8fe895c44 100644
--- a/test/gl/context.test.cpp
+++ b/test/gl/context.test.cpp
@@ -90,7 +90,7 @@ TEST(GLContextMode, Shared) {
ThreadPool threadPool(4);
- HeadlessFrontend frontend { 1, threadPool, {}, GLContextMode::Shared };
+ HeadlessFrontend frontend { 1, threadPool, {}, gfx::ContextMode::Shared };
Map map(frontend, MapObserver::nullObserver(), threadPool,
MapOptions().withMapMode(MapMode::Static).withSize(frontend.getSize()),
diff --git a/test/renderer/backend_scope.test.cpp b/test/renderer/backend_scope.test.cpp
index f5c43a34a1..3646afce48 100644
--- a/test/renderer/backend_scope.test.cpp
+++ b/test/renderer/backend_scope.test.cpp
@@ -7,8 +7,11 @@
using namespace mbgl;
-class StubRendererBackend: public gl::RendererBackend {
+class StubRendererBackend : public gl::RendererBackend {
public:
+ StubRendererBackend() : gl::RendererBackend(gfx::ContextMode::Unique) {
+ }
+
void activate() override {
if (activateFunction) activateFunction();
}
diff --git a/test/text/local_glyph_rasterizer.test.cpp b/test/text/local_glyph_rasterizer.test.cpp
index 26e4a2eb1d..f21ac0b883 100644
--- a/test/text/local_glyph_rasterizer.test.cpp
+++ b/test/text/local_glyph_rasterizer.test.cpp
@@ -34,7 +34,7 @@ namespace {
class LocalGlyphRasterizerTest {
public:
LocalGlyphRasterizerTest(const optional<std::string> fontFamily)
- : frontend(1, threadPool, optional<std::string>(), GLContextMode::Unique, fontFamily)
+ : frontend(1, threadPool, optional<std::string>(), gfx::ContextMode::Unique, fontFamily)
{
}