summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry/line_atlas.cpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-06-25 00:10:34 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-06-25 16:26:21 +0300
commite32b0b7e20179c24ffa12325b4d5e184941acbb8 (patch)
treed724bae0b0f3d949cde4b0fed3e879d8c6a9a45d /src/mbgl/geometry/line_atlas.cpp
parentbe4cb6786babca3368b10e2c1c1aaa9eb43e5663 (diff)
downloadqtlocation-mapboxgl-e32b0b7e20179c24ffa12325b4d5e184941acbb8.tar.gz
Introduce GLObjectStore
Make a class for keeping GL objects ids and attach it to the ThreadContext instead of hanging it on the Environment.
Diffstat (limited to 'src/mbgl/geometry/line_atlas.cpp')
-rw-r--r--src/mbgl/geometry/line_atlas.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mbgl/geometry/line_atlas.cpp b/src/mbgl/geometry/line_atlas.cpp
index b516723cd9..0c16294d53 100644
--- a/src/mbgl/geometry/line_atlas.cpp
+++ b/src/mbgl/geometry/line_atlas.cpp
@@ -1,8 +1,9 @@
-#include <mbgl/map/environment.hpp>
#include <mbgl/geometry/line_atlas.hpp>
#include <mbgl/platform/gl.hpp>
#include <mbgl/platform/log.hpp>
#include <mbgl/platform/platform.hpp>
+#include <mbgl/util/gl_object_store.hpp>
+#include <mbgl/util/thread_context.hpp>
#include <boost/functional/hash.hpp>
@@ -22,7 +23,7 @@ LineAtlas::~LineAtlas() {
std::lock_guard<std::recursive_mutex> lock(mtx);
if (texture) {
- Environment::Get().abandonTexture(texture);
+ mbgl::util::ThreadContext::getGLObjectStore()->abandonTexture(texture);
texture = 0;
}
}