From bfb96bb23a0f1925ec63fdc901791b9c0ce36e19 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sun, 9 Apr 2023 15:10:33 -0300 Subject: [PATCH] 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. --- gdk/gdkvulkancontext.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c index e57cb4648d..2a17e2b2a1 100644 --- a/gdk/gdkvulkancontext.c +++ b/gdk/gdkvulkancontext.c @@ -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,