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
2026-07-24 21:40:02 +02:00
committed by GitHub
+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;