diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-07-26 03:28:57 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:28 +0100 |
commit | dc72d4d4f5240b12bc771427404e7a74d56c87d9 (patch) | |
tree | 9745e37911ce9795dfe4aa70c287f92b5a36a977 | |
parent | vk_graphics_pipeline: Use Shader::NumDescriptors when possible (diff) | |
download | yuzu-dc72d4d4f5240b12bc771427404e7a74d56c87d9.tar yuzu-dc72d4d4f5240b12bc771427404e7a74d56c87d9.tar.gz yuzu-dc72d4d4f5240b12bc771427404e7a74d56c87d9.tar.bz2 yuzu-dc72d4d4f5240b12bc771427404e7a74d56c87d9.tar.lz yuzu-dc72d4d4f5240b12bc771427404e7a74d56c87d9.tar.xz yuzu-dc72d4d4f5240b12bc771427404e7a74d56c87d9.tar.zst yuzu-dc72d4d4f5240b12bc771427404e7a74d56c87d9.zip |
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 720247b4e..575f12566 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -630,8 +630,8 @@ void BlitScale(VKScheduler& scheduler, VkImage src_image, VkImage dst_image, con .z = 0, }, { - .x = static_cast<s32>(extent.width), - .y = static_cast<s32>(extent.height), + .x = std::max(1, static_cast<s32>(extent.width) >> level), + .y = std::max(1, static_cast<s32>(extent.height) >> level), .z = 1, }, }, |