Commit 4ddd5c5e by Nicolas Capens Committed by Nicolas Capens

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/15149Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent f08be92d
......@@ -26,7 +26,7 @@
#include <string>
#include <vector>
#include <set>
#include <unordered_map>
#include <map>
namespace es2
{
......@@ -280,8 +280,8 @@ namespace es2
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];
......
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