diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-04-26 08:48:40 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-04-26 08:48:40 +0200 |
commit | 213120a98b2df9127d093a9daf57b5d9d03fa562 (patch) | |
tree | dd4ba3fcc8a87d1955e5b1fdc0335f60282e290c /src | |
parent | Merge pull request #8262 from Morph1984/conan (diff) | |
download | yuzu-213120a98b2df9127d093a9daf57b5d9d03fa562.tar yuzu-213120a98b2df9127d093a9daf57b5d9d03fa562.tar.gz yuzu-213120a98b2df9127d093a9daf57b5d9d03fa562.tar.bz2 yuzu-213120a98b2df9127d093a9daf57b5d9d03fa562.tar.lz yuzu-213120a98b2df9127d093a9daf57b5d9d03fa562.tar.xz yuzu-213120a98b2df9127d093a9daf57b5d9d03fa562.tar.zst yuzu-213120a98b2df9127d093a9daf57b5d9d03fa562.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_vulkan/renderer_vulkan.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp index 7a1d911eb..7c78d0299 100644 --- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp +++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp @@ -127,6 +127,11 @@ void RendererVulkan::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) { if (!render_window.IsShown()) { return; } + // Update screen info if the framebuffer size has changed. + if (screen_info.width != framebuffer->width || screen_info.height != framebuffer->height) { + screen_info.width = framebuffer->width; + screen_info.height = framebuffer->height; + } const VAddr framebuffer_addr = framebuffer->address + framebuffer->offset; const bool use_accelerated = rasterizer.AccelerateDisplay(*framebuffer, framebuffer_addr, framebuffer->stride); |