summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/HiresTextures.cpp
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2015-06-04 02:51:02 -0400
committercomex <comexk@gmail.com>2015-06-04 02:52:41 -0400
commit830a4e4f8fb94a425ce55f4b66bdbe14a4f083cf (patch)
tree4ff21137ec4405857c4613ae6fad259d5066c10f /Source/Core/VideoCommon/HiresTextures.cpp
parent0f7f8f87747ae825c3b5adeae35cbb66114d2ba1 (diff)
Undo accidental screwup of some HiresTextures code from project-moration.
This is why I should wait for people to review, even if I get annoyed that nobody seems to care. :duncecap:
Diffstat (limited to 'Source/Core/VideoCommon/HiresTextures.cpp')
-rw-r--r--Source/Core/VideoCommon/HiresTextures.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/HiresTextures.cpp b/Source/Core/VideoCommon/HiresTextures.cpp
index 54995e01cc..953052eb5d 100644
--- a/Source/Core/VideoCommon/HiresTextures.cpp
+++ b/Source/Core/VideoCommon/HiresTextures.cpp
@@ -102,8 +102,13 @@ void HiresTexture::Update()
std::string FileName;
SplitPath(rFilename, nullptr, &FileName, nullptr);
- if (FileName.substr(0, code.length()) == code ||
- FileName.substr(0, s_format_prefix.length()) == s_format_prefix)
+ if (FileName.substr(0, code.length()) == code)
+ {
+ s_textureMap[FileName] = rFilename;
+ s_check_native_format = true;
+ }
+
+ if (FileName.substr(0, s_format_prefix.length()) == s_format_prefix)
{
s_textureMap[FileName] = rFilename;
s_check_new_format = true;