diff options
author | Mat M <mathew1800@gmail.com> | 2019-03-12 21:05:36 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-12 21:05:36 -0300 |
commit | a3734d7e31095133154ae048acbcc3bd6d9f93e9 (patch) | |
tree | 03431cfbd8736dafc27232a7cd299477eb272601 /src | |
parent | aa59d77c3bd7745f03e9bc1d1dca17bb0c338c1f (diff) |
vk_sampler_cache: Use operator== instead of memcmp
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_sampler_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_sampler_cache.cpp b/src/video_core/renderer_vulkan/vk_sampler_cache.cpp index f099d78ab..ed3178f09 100644 --- a/src/video_core/renderer_vulkan/vk_sampler_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_sampler_cache.cpp @@ -35,7 +35,7 @@ std::size_t SamplerCacheKey::Hash() const { } bool SamplerCacheKey::operator==(const SamplerCacheKey& rhs) const { - return std::memcmp(raw.data(), rhs.raw.data(), sizeof(raw)) == 0; + return raw == rhs.raw; } VKSamplerCache::VKSamplerCache(const VKDevice& device) : device{device} {} |