mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-22 13:53:40 +00:00
renderer_vulkan: Update screen info if the framebuffer size has changed
This commit is contained in:
parent
5295a925d8
commit
213120a98b
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue