Skip to content
Snippets Groups Projects
Commit ea319dcc authored by Ludovico de Nittis's avatar Ludovico de Nittis :palm_tree:
Browse files

check-vulkan: zero-initialize the VkXcbSurfaceCreateInfoKHR variable


If it's not zero-initialized, it could lead to a SEGV when we try to
create the XCB surface.

Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
parent 77920a92
No related branches found
No related tags found
1 merge request!222Various improvements to check-vulkan
......@@ -277,7 +277,7 @@ private:
throw std::runtime_error("Vulkan not supported on given X window");
}
VkXcbSurfaceCreateInfoKHR createSurfaceInfo;
VkXcbSurfaceCreateInfoKHR createSurfaceInfo = {};
createSurfaceInfo.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
createSurfaceInfo.connection = xcb_connection;
createSurfaceInfo.window = xcb_window;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment