This PR adds support for Wayland and X11 for GLFW, instead of choosing between one or the other. If you compile with both, you can use the environment variable GLFW_PLATFORM to select between them. If GLFW_PLATFORM is not provided, it will use the user's environment variable XDG_SESSION_TYPE to select the platform.
For building, it adds the TLRENDER_X11 or TLRENDER_WAYLAND variables. The default for building is to build X11 only.
This PR adds support for Wayland and X11 for GLFW, instead of choosing between one or the other. If you compile with both, you can use the environment variable GLFW_PLATFORM to select between them. If GLFW_PLATFORM is not provided, it will use the user's environment variable XDG_SESSION_TYPE to select the platform.
For building, it adds the TLRENDER_X11 or TLRENDER_WAYLAND variables. The default for building is to build X11 only.
This PR has been tested on tlplay-gl and mrv2.