Skip to content

Commit

Permalink
Add a comment on how to fix the actual bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 25, 2023
1 parent c2963c7 commit faef4aa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions GPU/Common/TextureReplacer.cpp
Expand Up @@ -181,12 +181,6 @@ bool TextureReplacer::LoadIni() {
std::map<ReplacementCacheKey, std::map<int, std::string>> filenameMap;
ScanForHashNamedFiles(dir, filenameMap);
ComputeAliasMap(filenameMap);
// Set some defaults.
allowVideo_ = false;
ignoreAddress_ = false;
reduceHash_ = false;
ignoreMipmap_ = false;
// TODO: others?
}
}

Expand Down Expand Up @@ -599,6 +593,7 @@ ReplacedTexture *TextureReplacer::FindReplacement(u64 cachekey, u32 hash, int w,
}
desc.logId = desc.filenames[0];
desc.hashfiles = desc.filenames[0]; // The generated filename of the top level is used as the key in the data cache.
// TODO: here `hashfiles` is set to an empty string, breaking stuff below.
} else {
desc.logId = hashfiles;
SplitString(hashfiles, '|', desc.filenames);
Expand Down

0 comments on commit faef4aa

Please sign in to comment.