summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/context.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-11-14 11:57:02 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-11-15 13:55:08 -0800
commit9d2be044614c3719a88523e32f4d8155bd6debb8 (patch)
tree718ec2f7adb7e73ef724ab070e7e7722247e338b /src/mbgl/gl/context.hpp
parent377d0fb0d20fa4129d867f0e8762ce208ccee14d (diff)
downloadqtlocation-mapboxgl-9d2be044614c3719a88523e32f4d8155bd6debb8.tar.gz
[core] Return to static, per-segment approach to VAOs
This is safer now -- it can be an implementation detail of Segment/Context. And the typing of SegmentVector now ensures that the attributes and program match.
Diffstat (limited to 'src/mbgl/gl/context.hpp')
-rw-r--r--src/mbgl/gl/context.hpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mbgl/gl/context.hpp b/src/mbgl/gl/context.hpp
index 33b7a555a8..093afa20ed 100644
--- a/src/mbgl/gl/context.hpp
+++ b/src/mbgl/gl/context.hpp
@@ -233,20 +233,6 @@ private:
std::vector<VertexArrayID> abandonedVertexArrays;
std::vector<FramebufferID> abandonedFramebuffers;
std::vector<RenderbufferID> abandonedRenderbuffers;
-
- using VertexArrayObjectKey = std::tuple<
- ProgramID, // Program
- BufferID, // Vertex buffer
- BufferID, // Index buffer
- std::size_t // Vertex buffer offset
- >;
-
- struct VertexArrayObjectHash {
- std::size_t operator()(const VertexArrayObjectKey&) const;
- };
-
- using VertexArrayObjectMap = std::unordered_map<VertexArrayObjectKey, UniqueVertexArray, VertexArrayObjectHash>;
- VertexArrayObjectMap vaos;
};
} // namespace gl