diff --git a/Source/Core/VideoCommon/RenderState.h b/Source/Core/VideoCommon/RenderState.h index 8e0902b88e..4a682b1a0f 100644 --- a/Source/Core/VideoCommon/RenderState.h +++ b/Source/Core/VideoCommon/RenderState.h @@ -220,17 +220,14 @@ struct SamplerState TM1 tm1; }; -namespace std -{ template <> -struct hash +struct std::hash { - std::size_t operator()(SamplerState const& state) const noexcept + std::size_t operator()(const SamplerState& state) const noexcept { return std::hash{}(state.Hex()); } }; -} // namespace std namespace RenderState {