From edce713fc92881bea1f6bb049b06efb2e86d81fa Mon Sep 17 00:00:00 2001
From: Lucas Reis <lucas.reis091997@gmail.com>
Date: Tue, 7 Nov 2023 22:47:02 -0400
Subject: [PATCH] Allocate resources for test window before getting system info

---
 src/yuzu/vk_device_info.cpp | 1 +
 1 file changed, 1 insertion(+)

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;