Pass w/h in for replacement lookup.

So we can scale the w/h properly.
This commit is contained in:
Unknown W. Brackets committed 2016-05-01 00:30:44 -07:00
1 parent f039259a1a
commit 0c357c0ea3
5 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -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;