diff options
author | Lucas Reis <[email protected]> | 2023-11-07 22:47:02 -0400 |
---|---|---|
committer | Lucas Reis <[email protected]> | 2023-11-07 22:47:02 -0400 |
commit | edce713fc92881bea1f6bb049b06efb2e86d81fa (patch) | |
tree | d93642e212d8f9042be265c6a199f2d648c0eaf9 /src/yuzu/vk_device_info.cpp | |
parent | f75363177ebca1e4ccf447e0bfb8894ad0136f20 (diff) | |
download | yuzu-mainline-edce713fc92881bea1f6bb049b06efb2e86d81fa.tar.gz yuzu-mainline-edce713fc92881bea1f6bb049b06efb2e86d81fa.zip |
Allocate resources for test window before getting system info
Diffstat (limited to 'src/yuzu/vk_device_info.cpp')
-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 { // Create a test window with a Vulkan surface type for checking present modes. QWindow test_window(window); test_window.setSurfaceType(QWindow::VulkanSurface); + test_window.create(); auto wsi = QtCommon::GetWindowSystemInfo(&test_window); vk::InstanceDispatch dld; |