Commit 8776c531 by Nicolas Capens

Use a regular STL map instead of unordered_map.

Older branches of Android don't support std::unordered_map. Bug 28006371 Change-Id: I162249db3b7ee9537c7143768c6c1ec216392cba Reviewed-on: https://swiftshader-review.googlesource.com/5045Reviewed-by: 's avatarBo Hu <bohu@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com> (cherry picked from commit db4fee2752c3b440933fd89078e35b3781c211ce) Reviewed-on: https://swiftshader-review.googlesource.com/5047Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 0538d115
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "Object.hpp" #include "Object.hpp"
#include "debug.h" #include "debug.h"
#include <unordered_map> #include <map>
namespace gl namespace gl
{ {
...@@ -109,7 +109,7 @@ public: ...@@ -109,7 +109,7 @@ public:
} }
private: private:
typedef std::unordered_map<GLuint, ObjectType*> Map; typedef std::map<GLuint, ObjectType*> Map;
Map map; Map map;
GLuint freeName; // Lowest known potentially free name GLuint freeName; // Lowest known potentially free name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment