On Wed Feb 28 13:01:18 2024 +0000, Rémi Bernon wrote:
(The latter is probably better, though you'll have to check and require a few extensions)
Mesa's EGL at least, has good autodetection mechanisms based on the provided native_display, but indeed being more explicit with eglGetPlatformDisplay is the better choice if available. I will add support for it, using eglGetDisplay as a fallback.
EGL_DEFAULT_DISPLAY doesn't help here, because even if Wayland is the default EGL platform, EGL will create a new connection/wl_display to the compositor which cannot use objects created from our normal Wine wl_display (notably it won't be able to use the wl_surface we want to make a target for rendering).