diff options
| author | degasus <wickmarkus@web.de> | 2015-01-21 23:06:18 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2015-01-21 23:33:42 +0100 |
| commit | 7cf4dd63e45af0617ef7eabc25e3f39f36f1fe84 (patch) | |
| tree | 62d0866284292f5d065d7841409a26b6d62dcd1a /Source/Core/VideoCommon | |
| parent | 1d0557a5e622b822d4d0d2f31036188f4051b604 (diff) | |
CustomTexture: fix texture format
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/HiresTextures.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/HiresTextures.cpp b/Source/Core/VideoCommon/HiresTextures.cpp index e4d90700dd..9483fe3b3f 100644 --- a/Source/Core/VideoCommon/HiresTextures.cpp +++ b/Source/Core/VideoCommon/HiresTextures.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include <algorithm> +#include <cinttypes> #include <cstring> #include <string> #include <utility> @@ -155,8 +156,8 @@ std::string HiresTexture::GenBaseName(const u8* texture, size_t texture_size, co 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) : ""; + std::string basename = s_format_prefix + StringFromFormat("%dx%d%s_%016" PRIx64, width, height, has_mipmaps ? "_m" : "", tex_hash); + std::string tlutname = tlut_size ? StringFromFormat("_%016" PRIx64, tlut_hash) : ""; std::string formatname = StringFromFormat("_%d", format); std::string fullname = basename + tlutname + formatname; |
