From 774d32038f60b672ba37daf9ce71e73009a2eed9 Mon Sep 17 00:00:00 2001 From: Michael Muesch Date: Thu, 23 May 2019 13:02:55 -0400 Subject: Fix namespace issue with OSMesa HeadlessBackend seems to be part of the mbgl::gl namespace. Since OSMesaBackendImpl is only in the mbgl namespace this code does not compile. Since this file is in the mbgl/gl folder I think it makes sense to just put the whole thing in the mbgl::gl namespace. --- platform/default/src/mbgl/gl/headless_backend_osmesa.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/default/src/mbgl/gl/headless_backend_osmesa.cpp b/platform/default/src/mbgl/gl/headless_backend_osmesa.cpp index 0da1caf9af..75e5dc8ab2 100644 --- a/platform/default/src/mbgl/gl/headless_backend_osmesa.cpp +++ b/platform/default/src/mbgl/gl/headless_backend_osmesa.cpp @@ -6,6 +6,7 @@ #include namespace mbgl { +namespace gl { class OSMesaBackendImpl : public HeadlessBackend::Impl { public: @@ -44,4 +45,5 @@ void HeadlessBackend::createImpl() { impl = std::make_unique(); } +} // namespace gl } // namespace mbgl -- cgit v1.2.1