Skip to content

Commit

Permalink
Vulkan: Use the correct resolution for out-of-date check (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
goeiecool9999 committed Dec 28, 2022
1 parent 1b660e0 commit 33bd10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33bd10b

Please sign in to comment.