diff options
| author | 2023-11-10 10:38:49 -0500 | |
|---|---|---|
| committer | 2023-11-10 10:38:49 -0500 | |
| commit | 2f9487cd38aae71187b2f324a45b7e3657f18b48 (patch) | |
| tree | d93642e212d8f9042be265c6a199f2d648c0eaf9 /src | |
| parent | Merge pull request #11977 from SamayXD/patch-1 (diff) | |
| parent | Allocate resources for test window before getting system info (diff) | |
| download | yuzu-2f9487cd38aae71187b2f324a45b7e3657f18b48.tar.gz yuzu-2f9487cd38aae71187b2f324a45b7e3657f18b48.tar.xz yuzu-2f9487cd38aae71187b2f324a45b7e3657f18b48.zip | |
Merge pull request #11981 from lucasreis1/patch
Allocate resources for test window before getting system info
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/vk_device_info.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/yuzu/vk_device_info.cpp b/src/yuzu/vk_device_info.cpp index 92f10d315..ab0d39c25 100644 --- a/src/yuzu/vk_device_info.cpp +++ b/src/yuzu/vk_device_info.cpp | |||
| @@ -31,6 +31,7 @@ void PopulateRecords(std::vector<Record>& records, QWindow* window) try { | |||
| 31 | // Create a test window with a Vulkan surface type for checking present modes. | 31 | // Create a test window with a Vulkan surface type for checking present modes. |
| 32 | QWindow test_window(window); | 32 | QWindow test_window(window); |
| 33 | test_window.setSurfaceType(QWindow::VulkanSurface); | 33 | test_window.setSurfaceType(QWindow::VulkanSurface); |
| 34 | test_window.create(); | ||
| 34 | auto wsi = QtCommon::GetWindowSystemInfo(&test_window); | 35 | auto wsi = QtCommon::GetWindowSystemInfo(&test_window); |
| 35 | 36 | ||
| 36 | vk::InstanceDispatch dld; | 37 | vk::InstanceDispatch dld; |