vk_sampler_cache: Use operator== instead of memcmp

Co-Authored-By: ReinUsesLisp <[email protected]>
This commit is contained in:
Mat MandReinUsesLisp authored and GitHub committed 2019-03-12 21:05:36 -03:00
1 parent aa59d77c3b
commit a3734d7e31
1 file changed
+1 -1
@@ -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} {}