Phoenix icon indicating copy to clipboard operation
Phoenix copied to clipboard

Clarification on X11/GLX versus Wayland/EGL

Open pauldmccarthy opened this issue 4 years ago • 9 comments

Howdy,

This is not an issue - rather, I was hoping for official clarification on the current situation with regard to the use of X11/GLX versus Wayland/EGL.

I am in the lucky situation of being the maintainer of a wxPython+PyOpenGL application with users who routinely work on remote servers using X11 over SSH, so my query specifically relate to the use of GLCanvas.

I think I've figured things out, but I would appreciate if somebody could confirm whether the following statements are accurate:

  1. As of this PR, the GL initialisation library used by the GLCanvas class (either GLX or EGL) has become a compile-time choice. So a version of wxWidgets/wxPython compiled against EGL cannot be made to use GLX, and vice versa.

  2. The wxPython 4.1.1 binary wheels released at https://extras.wxython.org have been compiled such that GLCanvas uses EGL.

  3. In order to support X11 over SSH, I'll need to either stick with wxPython 4.1.0, or build my own version of wxPython, such that wxWidgets is configured and built with --disable-glcanvasegl.

  4. As an aside, I'm also guessing that the previously suggested workaround of using GDK_BACKEND=x11 to allow a wxPython/OpenGL application to work in a Wayland environment is now only relevant to GLX builds of wxWidgets.

Does all of this sound about right? Thanks!

pauldmccarthy avatar Feb 16 '21 22:02 pauldmccarthy