Do not have hash specialization just for ColorChannelMapping

This commit is contained in:
sabrina-shanman 2019-02-11 09:06:26 -08:00
parent 0f291612c3
commit f7d7136b3e
2 changed files with 1 additions and 12 deletions

View file

@ -207,7 +207,7 @@ namespace std {
struct hash<TextureExtra> {
size_t operator()(const TextureExtra& a) const {
size_t result = 0;
hash_combine(result, (int)a.type, a.content, a.maxNumPixels, a.channelMapping);
hash_combine(result, (int)a.type, a.content, a.maxNumPixels, (int)a.channelMapping);
return result;
}
};

View file

@ -23,15 +23,4 @@ enum class ColorChannelMapping {
COUNT
};
namespace std {
template <>
struct hash<ColorChannelMapping> {
size_t operator()(const ColorChannelMapping& a) const {
size_t result = 0;
hash_combine(result, (int)a);
return result;
}
};
};
#endif // hifi_ColorChannelMapping_h