mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
Do not have hash specialization just for ColorChannelMapping
This commit is contained in:
parent
0f291612c3
commit
f7d7136b3e
2 changed files with 1 additions and 12 deletions
|
@ -207,7 +207,7 @@ namespace std {
|
||||||
struct hash<TextureExtra> {
|
struct hash<TextureExtra> {
|
||||||
size_t operator()(const TextureExtra& a) const {
|
size_t operator()(const TextureExtra& a) const {
|
||||||
size_t result = 0;
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -23,15 +23,4 @@ enum class ColorChannelMapping {
|
||||||
COUNT
|
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
|
#endif // hifi_ColorChannelMapping_h
|
||||||
|
|
Loading…
Reference in a new issue