mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-25 10:52:48 -06:00
Allocate resources for test window before getting system info
This commit is contained in:
parent
f75363177e
commit
edce713fc9
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
// Create a test window with a Vulkan surface type for checking present modes.
|
||||||
QWindow test_window(window);
|
QWindow test_window(window);
|
||||||
test_window.setSurfaceType(QWindow::VulkanSurface);
|
test_window.setSurfaceType(QWindow::VulkanSurface);
|
||||||
|
test_window.create();
|
||||||
auto wsi = QtCommon::GetWindowSystemInfo(&test_window);
|
auto wsi = QtCommon::GetWindowSystemInfo(&test_window);
|
||||||
|
|
||||||
vk::InstanceDispatch dld;
|
vk::InstanceDispatch dld;
|
||||||
|
|
Loading…
Reference in a new issue