diff --git a/rpcs3/Emu/RSX/Common/texture_cache_predictor.h b/rpcs3/Emu/RSX/Common/texture_cache_predictor.h index 287a2debca..b3b00c85b9 100644 --- a/rpcs3/Emu/RSX/Common/texture_cache_predictor.h +++ b/rpcs3/Emu/RSX/Common/texture_cache_predictor.h @@ -396,17 +396,14 @@ namespace rsx }; } // namespace rsx -namespace std +template +struct std::hash> { - template - struct hash> + usz operator()(const rsx::texture_cache_predictor_key& k) const { - usz operator()(const rsx::texture_cache_predictor_key& k) const - { - usz result = std::hash{}(k.cpu_range); - result ^= static_cast(k.format); - result ^= (static_cast(k.context) << 16); - return result; - } - }; -} // namespace std + usz result = std::hash{}(k.cpu_range); + result ^= static_cast(k.format); + result ^= (static_cast(k.context) << 16); + return result; + } +};