forked from ShuriZma/suyu
1
0
Fork 0

vk_texture_cache: Properly scale blit source images

This commit is contained in:
ReinUsesLisp 2021-07-25 22:28:57 -03:00 committed by Fernando Sahmkow
parent baf0993d5c
commit dc72d4d4f5
1 changed files with 2 additions and 2 deletions

View File

@ -630,8 +630,8 @@ void BlitScale(VKScheduler& scheduler, VkImage src_image, VkImage dst_image, con
.z = 0, .z = 0,
}, },
{ {
.x = static_cast<s32>(extent.width), .x = std::max(1, static_cast<s32>(extent.width) >> level),
.y = static_cast<s32>(extent.height), .y = std::max(1, static_cast<s32>(extent.height) >> level),
.z = 1, .z = 1,
}, },
}, },