mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-26 01:31:53 +01:00
Vulkan: Use the correct resolution for out-of-date check (#595)
This commit is contained in:
parent
1b660e0c16
commit
33bd10b4e0
@ -2636,9 +2636,9 @@ bool VulkanRenderer::UpdateSwapchainProperties(bool mainWindow)
|
||||
|
||||
int width, height;
|
||||
if (mainWindow)
|
||||
gui_getWindowSize(width, height);
|
||||
gui_getWindowPhysSize(width, height);
|
||||
else
|
||||
gui_getPadWindowSize(width, height);
|
||||
gui_getPadWindowPhysSize(width, height);
|
||||
auto extent = chainInfo.getExtent();
|
||||
if (width != extent.width || height != extent.height)
|
||||
stateChanged = true;
|
||||
|
Loading…
Reference in New Issue
Block a user