summaryrefslogtreecommitdiff
path: root/src/mbgl/map/backend.cpp
blob: a1a2f8f3a8fbea42e485742384148528aa47b82b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <mbgl/map/backend.hpp>
#include <mbgl/map/backend_scope.hpp>
#include <mbgl/gl/context.hpp>

#include <cassert>

namespace mbgl {

Backend::Backend() : context(std::make_unique<gl::Context>()) {
}

gl::Context& Backend::getContext() {
    assert(BackendScope::exists());
    return *context;
}

Backend::~Backend() = default;

} // namespace mbgl