gdk/vulkancontext: Don't create swapchain upfront

We now create and destroy swapchains and surfaces as needed, so no
need to create the swapchain when initializing the context.
This commit is contained in:
Georges Basile Stavracas Neto
2023-04-09 15:10:33 -03:00
parent dbb6b81081
commit bfb96bb23a

View File

@@ -688,9 +688,6 @@ gdk_vulkan_context_real_init (GInitable *initable,
priv->image_format = formats[i];
priv->has_present_region = device_supports_incremental_present (display->vk_physical_device);
if (!gdk_vulkan_context_check_swapchain (context, error))
goto out_surface;
GDK_VK_CHECK (vkCreateSemaphore, gdk_vulkan_context_get_device (context),
&(VkSemaphoreCreateInfo) {
.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO,