From 1d0557a5e622b822d4d0d2f31036188f4051b604 Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 21 Jan 2015 21:45:14 +0100 Subject: [PATCH] CustomTexture: use xxhash --- Source/Core/VideoCommon/HiresTextures.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/HiresTextures.cpp b/Source/Core/VideoCommon/HiresTextures.cpp index b90296e7b5..e4d90700dd 100644 --- a/Source/Core/VideoCommon/HiresTextures.cpp +++ b/Source/Core/VideoCommon/HiresTextures.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include "Common/CommonPaths.h" @@ -151,8 +152,8 @@ std::string HiresTexture::GenBaseName(const u8* texture, size_t texture_size, co tlut += 2 * min; } - u64 tex_hash = GetHashHiresTexture(texture, (int)texture_size); - u64 tlut_hash = tlut_size ? GetHashHiresTexture(tlut, (int)tlut_size) : 0; + u64 tex_hash = XXH64(texture, texture_size, 0); + u64 tlut_hash = tlut_size ? XXH64(tlut, tlut_size, 0) : 0; std::string basename = s_format_prefix + StringFromFormat("%s%dx%d_%016lx", has_mipmaps ? "m_" : "", width, height, tex_hash); std::string tlutname = tlut_size ? StringFromFormat("_%016lx", tlut_hash) : "";