Skip to content

Commit 79431f1

Browse files
authored
texture unordered_map (#7388)
#changelog #gl
1 parent 1f8934b commit 79431f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/openFrameworks/gl/ofTexture.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "ofGLBaseTypes.h"
66
#include "ofBufferObject.h"
77
#include "ofMesh.h"
8-
#include <map>
8+
#include <unordered_map>
99

1010
#ifdef TARGET_ANDROID
1111
#include "ofAppAndroidWindow.h"
@@ -121,8 +121,8 @@ void ofDisableArbTex(){
121121
}
122122

123123

124-
static std::map<GLuint,int> & getTexturesIndex(){
125-
static std::map<GLuint,int> * textureReferences = new std::map<GLuint,int>;
124+
static std::unordered_map<GLuint,int> & getTexturesIndex(){
125+
static std::unordered_map<GLuint,int> * textureReferences = new std::unordered_map<GLuint,int>;
126126
return *textureReferences;
127127
}
128128

0 commit comments

Comments
 (0)