summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry/line_atlas.hpp
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2015-01-14 23:09:14 -0500
committerAnsis Brammanis <brammanis@gmail.com>2015-01-14 23:09:14 -0500
commitb66f4e2c4b21ee6e028610f4fddf8f22bb2ba5e2 (patch)
tree05cbf4cc2b3383b049bdef7a2bfc1cf3f91bab46 /src/mbgl/geometry/line_atlas.hpp
parent4f827c21c62e9059cdfc108d2275ec99f639566c (diff)
downloadqtlocation-mapboxgl-b66f4e2c4b21ee6e028610f4fddf8f22bb2ba5e2.tar.gz
use TexSubImage2D for line atlas updates
Diffstat (limited to 'src/mbgl/geometry/line_atlas.hpp')
-rw-r--r--src/mbgl/geometry/line_atlas.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/geometry/line_atlas.hpp b/src/mbgl/geometry/line_atlas.hpp
index 800c047dc8..329c907b1c 100644
--- a/src/mbgl/geometry/line_atlas.hpp
+++ b/src/mbgl/geometry/line_atlas.hpp
@@ -3,7 +3,7 @@
#include <vector>
#include <map>
-
+#include <mutex>
#include <atomic>
namespace mbgl {
@@ -28,6 +28,7 @@ public:
const int height;
private:
+ std::recursive_mutex mtx;
char *const data = nullptr;
std::atomic<bool> dirty;
uint32_t texture = 0;