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.
This commit is contained in:
Michael Muesch
2019-05-23 13:02:55 -04:00
committed by Thiago Marcos P. Santos
parent fc802daa62
commit 774d32038f

View File

@@ -6,6 +6,7 @@
#include <cassert>
namespace mbgl {
namespace gl {
class OSMesaBackendImpl : public HeadlessBackend::Impl {
public:
@@ -44,4 +45,5 @@ void HeadlessBackend::createImpl() {
impl = std::make_unique<OSMesaBackendImpl>();
}
} // namespace gl
} // namespace mbgl