mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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> {
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue