On Tue, 30 Apr 2024 12:22:34 GMT, Thiago Milczarek Sayao <tsa...@openjdk.org> wrote:
>> Wayland implementation will require EGL. >> >> EGL works with Xorg as well. The idea is to be EGL first and if it fails, >> fallback to GLX. A force flag `prism.es2.forceGLX=true` is available. >> >> >> See: >> [Switching the Linux graphics stack from GLX to >> EGL](https://mozillagfx.wordpress.com/2021/10/30/switching-the-linux-graphics-stack-from-glx-to-egl/) >> [Prefer EGL to GLX for the GL support on >> X11](https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3540) > > Thiago Milczarek Sayao has updated the pull request incrementally with one > additional commit since the last revision: > > - Use EGL_DEFAULT_DISPLAY > - Deallocate the resources correctly > - Use PBuffer as the dummy surface I changed it to use EGL_DEFAULT_DISPLAY in a attempt to make no assumptions on the platform. It works, but I'm not sure if it's correct. I'm looking at Mesa egl source to be sure. I also changed the dummy window to use PBUFFER (also to make no assumptions on the platform, so there's no need to create a XWindow). I'm also not sure about that. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1381#issuecomment-2085214672