Replaced set with unordered_set.

This commit is contained in:
bkaradzic 2013-01-22 19:56:40 -08:00
parent 37d720abd4
commit 6146f08183
2 changed files with 3 additions and 4 deletions

View File

@ -93,11 +93,13 @@ namespace tinystl
# include <TINYSTL/string.h>
# include <TINYSTL/unordered_map.h>
# include <TINYSTL/unordered_set.h>
namespace stl = tinystl;
#else
namespace std { namespace tr1 {} using namespace tr1; } // namespace std
# include <string>
# include <unordered_map>
# include <unordered_set>
namespace stl = std;
#endif // BGFX_CONFIG_USE_TINYSTL
#include <list>

View File

@ -165,7 +165,6 @@ typedef void (*PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC)(GLuint shader, GLsizei b
# include "glcontext_wgl.h"
#endif // BGFX_USE_WGL
#ifndef GL_APIENTRY
# define GL_APIENTRY APIENTRY
#endif // GL_APIENTRY
@ -178,8 +177,6 @@ typedef void (*PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC)(GLuint shader, GLsizei b
# define glClearDepth glClearDepthf
#endif // !BGFX_CONFIG_RENDERER_OPENGL
#include <set>
namespace bgfx
{
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORBGFXPROC)(GLuint _index, GLuint _divisor);
@ -303,7 +300,7 @@ namespace bgfx
m_vaoSet.clear();
}
typedef stl::set<uint32_t> VaoSet;
typedef stl::unordered_set<uint32_t> VaoSet;
VaoSet m_vaoSet;
};