diff --git a/gdk/x11/gdkvulkancontext-x11.c b/gdk/x11/gdkvulkancontext-x11.c index 12ac0f24f4..b37c8b04cc 100644 --- a/gdk/x11/gdkvulkancontext-x11.c +++ b/gdk/x11/gdkvulkancontext-x11.c @@ -38,13 +38,6 @@ gdk_x11_vulkan_context_create_surface (GdkVulkanContext *context, GdkSurface *window = gdk_draw_context_get_surface (GDK_DRAW_CONTEXT (context)); GdkDisplay *display = gdk_draw_context_get_display (GDK_DRAW_CONTEXT (context)); - /* This is necessary so that Vulkan sees the Window. - * Usually, vkCreateXlibSurfaceKHR() will not cause a problem to happen as - * it just creates resources, but further calls with the resulting surface - * do cause issues. - */ - gdk_display_sync (display); - return GDK_VK_CHECK (vkCreateXlibSurfaceKHR, gdk_vulkan_context_get_instance (context), &(VkXlibSurfaceCreateInfoKHR) { VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR,