summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2024-01-31 12:40:08 -0500
committerLioncash <mai.iam2048@gmail.com>2024-01-31 12:40:10 -0500
commitb63dcd504daed02412609057703fc2f418eec095 (patch)
treed4725d9376c48941fab79b03349da02f88524e4e /Source/Core
parent5bfaa3a966f01301ca8e856963628c6fdf68cb7d (diff)
RenderState: Collapse std namespace for hash
We can specify the namespace on the hash to make the specialization a little less noisy.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/RenderState.h7
1 files changed, 2 insertions, 5 deletions
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<SamplerState>
+struct std::hash<SamplerState>
{
- std::size_t operator()(SamplerState const& state) const noexcept
+ std::size_t operator()(const SamplerState& state) const noexcept
{
return std::hash<u64>{}(state.Hex());
}
};
-} // namespace std
namespace RenderState
{