Vulkan: Use the correct resolution for out-of-date check (#595)

This commit is contained in:
goeiecool9999 2022-12-29 00:19:05 +01:00 committed by GitHub
parent 1b660e0c16
commit 33bd10b4e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2636,9 +2636,9 @@ bool VulkanRenderer::UpdateSwapchainProperties(bool mainWindow)
int width, height; int width, height;
if (mainWindow) if (mainWindow)
gui_getWindowSize(width, height); gui_getWindowPhysSize(width, height);
else else
gui_getPadWindowSize(width, height); gui_getPadWindowPhysSize(width, height);
auto extent = chainInfo.getExtent(); auto extent = chainInfo.getExtent();
if (width != extent.width || height != extent.height) if (width != extent.width || height != extent.height)
stateChanged = true; stateChanged = true;