Browse Source
Merge pull request #11981 from lucasreis1/patch
Allocate resources for test window before getting system info
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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; |
|
|
|
|