From a3734d7e31095133154ae048acbcc3bd6d9f93e9 Mon Sep 17 00:00:00 2001 From: Mat M Date: Tue, 12 Mar 2019 21:05:36 -0300 Subject: [PATCH] vk_sampler_cache: Use operator== instead of memcmp Co-Authored-By: ReinUsesLisp --- src/video_core/renderer_vulkan/vk_sampler_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} {}