mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Pass w/h in for replacement lookup.
So we can scale the w/h properly.
This commit is contained in:
1 parent
f039259a1a
commit
0c357c0ea3
5 files changed
+6
-5
No files matched your search
@@ -1237,7 +1237,7 @@ void TextureCacheVulkan::SetTexture(VulkanPushBuffer *uploadBuffer) {
|
||||
scaleFactor = scaleFactor > 4 ? 4 : (scaleFactor > 2 ? 2 : 1);
|
||||
}
|
||||
|
||||
ReplacedTexture replaced = replacer.FindReplacement(cachekey, entry->fullhash);
|
||||
ReplacedTexture replaced = replacer.FindReplacement(cachekey, entry->fullhash, w, h);
|
||||
if (replaced.GetSize(0, w, h)) {
|
||||
// We're replacing, so we won't scale.
|
||||
scaleFactor = 1;
|
||||
|
||||
Reference in new issue
Block a user