summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteveice10 <1269164+Steveice10@users.noreply.github.com>2023-07-01 08:35:36 +0200
committerSteveice10 <1269164+Steveice10@users.noreply.github.com>2023-07-01 23:15:26 +0200
commitaa89ec921481696c976dd1ca6687721c98e0b2d7 (patch)
tree9d489207e1f53788635e868c84f1cf7d43e30467 /src
parentvulkan: Use newer VK_EXT_metal_surface to create surface for MoltenVK. (diff)
downloadyuzu-aa89ec921481696c976dd1ca6687721c98e0b2d7.tar
yuzu-aa89ec921481696c976dd1ca6687721c98e0b2d7.tar.gz
yuzu-aa89ec921481696c976dd1ca6687721c98e0b2d7.tar.bz2
yuzu-aa89ec921481696c976dd1ca6687721c98e0b2d7.tar.lz
yuzu-aa89ec921481696c976dd1ca6687721c98e0b2d7.tar.xz
yuzu-aa89ec921481696c976dd1ca6687721c98e0b2d7.tar.zst
yuzu-aa89ec921481696c976dd1ca6687721c98e0b2d7.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/vk_device_info.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu/vk_device_info.cpp b/src/yuzu/vk_device_info.cpp
index 7c26a3dc7..e1a0e6a2a 100644
--- a/src/yuzu/vk_device_info.cpp
+++ b/src/yuzu/vk_device_info.cpp
@@ -26,7 +26,10 @@ Record::~Record() = default;
void PopulateRecords(std::vector<Record>& records, QWindow* window) try {
using namespace Vulkan;
- auto wsi = QtCommon::GetWindowSystemInfo(window);
+ // Create a test window with a Vulkan surface type for checking present modes.
+ QWindow test_window(window);
+ test_window.setSurfaceType(QWindow::VulkanSurface);
+ auto wsi = QtCommon::GetWindowSystemInfo(&test_window);
vk::InstanceDispatch dld;
const auto library = OpenLibrary();