Merge pull request #21667 from dsprogrammingprojects/Texture-Replacement-Double-Wildcard

Texture replacement addition for Address Only case
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-07-24 21:40:02 +02:00
commit 2a79257551
1 file changed
+9
+9
View File
@@ -929,6 +929,15 @@ static typename std::unordered_map<ReplacementCacheKey, Value>::const_iterator L
return alias;
}
if (!ignoreAddress) {
// Address Only.
key.cachekey = cachekey & ~0xFFFFFFFFULL;
key.hash = 0;
alias = map.find(key);
if (alias != map.end())
return alias;
}
// Anything with this data hash (a little dangerous.)
key.cachekey = 0;
key.hash = hash;