From 7388c243d244cdaa7a2fb84aae556a95127f15f6 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 15 Jun 2023 17:31:22 +0200 Subject: [PATCH] [dxvk] Fix incorrect fullScreenExclusive feature check --- src/dxvk/dxvk_presenter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dxvk/dxvk_presenter.cpp b/src/dxvk/dxvk_presenter.cpp index 6eca13de..27247e18 100644 --- a/src/dxvk/dxvk_presenter.cpp +++ b/src/dxvk/dxvk_presenter.cpp @@ -132,11 +132,11 @@ namespace dxvk { VkResult status; if (m_device->features().extFullScreenExclusive) { - status = m_vki->vkGetPhysicalDeviceSurfaceCapabilitiesKHR( - m_device->adapter()->handle(), m_surface, &caps.surfaceCapabilities); - } else { status = m_vki->vkGetPhysicalDeviceSurfaceCapabilities2KHR( m_device->adapter()->handle(), &surfaceInfo, &caps); + } else { + status = m_vki->vkGetPhysicalDeviceSurfaceCapabilitiesKHR( + m_device->adapter()->handle(), m_surface, &caps.surfaceCapabilities); } if (status)