diff options
author | Brad Leege <bleege@gmail.com> | 2016-09-12 15:45:57 -0700 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2016-09-14 16:40:20 -0700 |
commit | d0f9ba499831a7412e51bd45141c9637ea484fde (patch) | |
tree | 187d7bfbb0c31e294dd9879dbb12a1e54a25903b /src/mbgl/gl | |
parent | a9f5224664905ac28a372be6aad429a31790df03 (diff) | |
download | qtlocation-mapboxgl-d0f9ba499831a7412e51bd45141c9637ea484fde.tar.gz |
[core] #3980 - Switching Core GL instances of map to unordered_map
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r-- | src/mbgl/gl/gl.cpp | 8 |
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; |