We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f8934b commit 79431f1Copy full SHA for 79431f1
libs/openFrameworks/gl/ofTexture.cpp
@@ -5,7 +5,7 @@
5
#include "ofGLBaseTypes.h"
6
#include "ofBufferObject.h"
7
#include "ofMesh.h"
8
-#include <map>
+#include <unordered_map>
9
10
#ifdef TARGET_ANDROID
11
#include "ofAppAndroidWindow.h"
@@ -121,8 +121,8 @@ void ofDisableArbTex(){
121
}
122
123
124
-static std::map<GLuint,int> & getTexturesIndex(){
125
- static std::map<GLuint,int> * textureReferences = new std::map<GLuint,int>;
+static std::unordered_map<GLuint,int> & getTexturesIndex(){
+ static std::unordered_map<GLuint,int> * textureReferences = new std::unordered_map<GLuint,int>;
126
return *textureReferences;
127
128
0 commit comments