diff options
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_blit_screen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_blit_screen.cpp b/src/video_core/renderer_vulkan/vk_blit_screen.cpp index d893c1952..b866e9103 100644 --- a/src/video_core/renderer_vulkan/vk_blit_screen.cpp +++ b/src/video_core/renderer_vulkan/vk_blit_screen.cpp | |||
| @@ -1406,8 +1406,9 @@ void VKBlitScreen::SetVertexData(BufferData& data, const Tegra::FramebufferConfi | |||
| 1406 | UNIMPLEMENTED_IF(framebuffer_crop_rect.top != 0); | 1406 | UNIMPLEMENTED_IF(framebuffer_crop_rect.top != 0); |
| 1407 | UNIMPLEMENTED_IF(framebuffer_crop_rect.left != 0); | 1407 | UNIMPLEMENTED_IF(framebuffer_crop_rect.left != 0); |
| 1408 | 1408 | ||
| 1409 | f32 scale_u = 1.0f; | 1409 | f32 scale_u = static_cast<f32>(framebuffer.width) / static_cast<f32>(screen_info.width); |
| 1410 | f32 scale_v = 1.0f; | 1410 | f32 scale_v = static_cast<f32>(framebuffer.height) / static_cast<f32>(screen_info.height); |
| 1411 | |||
| 1411 | // Scale the output by the crop width/height. This is commonly used with 1280x720 rendering | 1412 | // Scale the output by the crop width/height. This is commonly used with 1280x720 rendering |
| 1412 | // (e.g. handheld mode) on a 1920x1080 framebuffer. | 1413 | // (e.g. handheld mode) on a 1920x1080 framebuffer. |
| 1413 | if (!fsr) { | 1414 | if (!fsr) { |