Merge branch 'wip/otte/x11-remove-sync' into 'main'

x11: Remove gdk_display_sync() call

See merge request GNOME/gtk!7728
This commit is contained in:
Matthias Clasen
2024-09-24 07:03:20 +00:00

View File

@@ -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,