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

win32: Remove gdk_display_sync()

See merge request GNOME/gtk!7727
This commit is contained in:
Matthias Clasen 2024-09-24 07:03:53 +00:00
commit 4801c3275e

View File

@ -47,13 +47,6 @@ gdk_win32_vulkan_context_create_surface (GdkVulkanContext *context,
info.hinstance = this_module ();
info.hwnd = GDK_SURFACE_HWND (window);
/* This is necessary so that Vulkan sees the Window.
* Usually, vkCreateWin32SurfaceKHR() 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);
result = GDK_VK_CHECK (vkCreateWin32SurfaceKHR,
gdk_vulkan_context_get_instance (context),
&info,