aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/vk_device_info.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-07-01 22:38:26 -0400
committerGitHub <noreply@github.com>2023-07-01 22:38:26 -0400
commitae7e9b54692741a706610cb228da9631db939771 (patch)
treea8b9813e124b39e067c179032dd7f3b215487266 /src/yuzu/vk_device_info.cpp
parent971b89b979cb3b903263234f3a6fdd2bceb03cbe (diff)
parentaa89ec921481696c976dd1ca6687721c98e0b2d7 (diff)
Merge pull request #10974 from Steveice10/macos_vk
vulkan: Improvements to macOS surface creation
Diffstat (limited to 'src/yuzu/vk_device_info.cpp')
-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();