1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 13:08:50 +01:00

[dxvk] Fix incorrect fullScreenExclusive feature check

This commit is contained in:
Philip Rebohle 2023-06-15 17:31:22 +02:00
parent bd575a4a46
commit 7388c243d2

View File

@ -132,11 +132,11 @@ namespace dxvk {
VkResult status; VkResult status;
if (m_device->features().extFullScreenExclusive) { if (m_device->features().extFullScreenExclusive) {
status = m_vki->vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
m_device->adapter()->handle(), m_surface, &caps.surfaceCapabilities);
} else {
status = m_vki->vkGetPhysicalDeviceSurfaceCapabilities2KHR( status = m_vki->vkGetPhysicalDeviceSurfaceCapabilities2KHR(
m_device->adapter()->handle(), &surfaceInfo, &caps); m_device->adapter()->handle(), &surfaceInfo, &caps);
} else {
status = m_vki->vkGetPhysicalDeviceSurfaceCapabilitiesKHR(
m_device->adapter()->handle(), m_surface, &caps.surfaceCapabilities);
} }
if (status) if (status)