Use an ordinary map for compatibility with legacy Android.
<unordered_map> is not available on Android J-L.
Bug b/28006371
Change-Id: I7e06ebef092a7d3eef217f88e6fb6347c8d40ac1
Reviewed-on: https://swiftshader-review.googlesource.com/15149
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/OpenGL/libGLESv2/Program.h b/src/OpenGL/libGLESv2/Program.h
index d8c6c2e..451b2dc 100644
--- a/src/OpenGL/libGLESv2/Program.h
+++ b/src/OpenGL/libGLESv2/Program.h
@@ -26,7 +26,7 @@
#include <string>
#include <vector>
#include <set>
-#include <unordered_map>
+#include <map>
namespace es2
{
@@ -280,8 +280,8 @@
sw::PixelShader *pixelBinary;
sw::VertexShader *vertexBinary;
- std::unordered_map<std::string, GLuint> attributeBinding;
- std::unordered_map<std::string, GLuint> linkedAttributeLocation;
+ std::map<std::string, GLuint> attributeBinding;
+ std::map<std::string, GLuint> linkedAttributeLocation;
std::vector<glsl::Attribute> linkedAttribute;
int attributeStream[MAX_VERTEX_ATTRIBS];