Phoenix
Phoenix copied to clipboard
Clarification on X11/GLX versus Wayland/EGL
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:
-
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. -
The wxPython 4.1.1 binary wheels released at https://extras.wxython.org have been compiled such that
GLCanvas
uses EGL. -
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
. -
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!