summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/gl.cpp
diff options
context:
space:
mode:
authorBrad Leege <bleege@gmail.com>2016-09-12 15:45:57 -0700
committerBrad Leege <bleege@gmail.com>2016-09-14 16:40:20 -0700
commitd0f9ba499831a7412e51bd45141c9637ea484fde (patch)
tree187d7bfbb0c31e294dd9879dbb12a1e54a25903b /src/mbgl/gl/gl.cpp
parenta9f5224664905ac28a372be6aad429a31790df03 (diff)
downloadqtlocation-mapboxgl-d0f9ba499831a7412e51bd45141c9637ea484fde.tar.gz
[core] #3980 - Switching Core GL instances of map to unordered_map
Diffstat (limited to 'src/mbgl/gl/gl.cpp')
-rw-r--r--src/mbgl/gl/gl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/gl/gl.cpp b/src/mbgl/gl/gl.cpp
index 7747717c63..309785140f 100644
--- a/src/mbgl/gl/gl.cpp
+++ b/src/mbgl/gl/gl.cpp
@@ -4,7 +4,7 @@
#include <cassert>
#include <iostream>
-#include <map>
+#include <unordered_map>
#include <mutex>
namespace mbgl {
@@ -98,15 +98,15 @@ void checkError(const char *cmd, const char *file, int line) {
#undef glBufferData
static unsigned int currentUsedBytes = 0;
static GLint currentBoundTexture = 0;
-static std::map<GLint, unsigned int> bindingToSizeMap;
+static std::unordered_map<GLint, unsigned int> bindingToSizeMap;
static GLuint currentArrayBuffer = 0;
static GLuint currentElementArrayBuffer = 0;
-static std::map<GLint, GLsizeiptr> bufferBindingToSizeMap;
+static std::unordered_map<GLint, GLsizeiptr> bufferBindingToSizeMap;
static unsigned int currentUsedBufferBytes = 0;
static unsigned int largestAmountUsedSoFar = 0;
-static std::map<GLuint, GLuint> vertexArrayToArrayBufferMap;
+static std::unordered_map<GLuint, GLuint> vertexArrayToArrayBufferMap;
static GLuint currentVertexArray = 0;
static std::mutex gDebugMutex;