From: Rémi Bernon <rbernon(a)codeweavers.com>
---
dlls/win32u/vulkan.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/win32u/vulkan.c b/dlls/win32u/vulkan.c
index ca681b49d99..63837ab51eb 100644
--- a/dlls/win32u/vulkan.c
+++ b/dlls/win32u/vulkan.c
@@ -91,6 +91,9 @@ static VkResult win32u_vkCreateWin32SurfaceKHR( VkInstance instance,
const VkWin
return res;
}
+ /* make sure the window has a pixel format selected to get consistent window surface
updates */
+ if (!win32u_get_window_pixel_format( info->hwnd )) win32u_set_window_pixel_format(
info->hwnd, 1, TRUE );
+
if (!(win = get_win_ptr( toplevel )) || win == WND_DESKTOP || win ==
WND_OTHER_PROCESS)
{
driver_funcs->p_vulkan_surface_detach( surface->hwnd,
surface->driver_private );
--
GitLab
https://gitlab.winehq.org/wine/wine/-/merge_requests/5573