Properly support Wayland under EGL and Vulkan. (#3358)

This commit is contained in:
Martijn Courteaux
2024-10-01 18:01:44 +02:00
committed by GitHub
parent f8b20616de
commit 3303b451a1
6 changed files with 34 additions and 27 deletions

View File

@@ -6940,7 +6940,7 @@ VK_DESTROY
sci.pNext = NULL;
sci.flags = 0;
sci.display = (wl_display*)g_platformData.ndt;
sci.surface = (wl_surface*)((wl_egl_window*)m_nwh)->surface;
sci.surface = (wl_surface*)m_nwh;
result = vkCreateWaylandSurfaceKHR(instance, &sci, allocatorCb, &m_surface);
}
else