-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support for switching platforms (from Wayland EGL to X11 GLX) #2500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
nice, i suggest to change the setting to
i think "native platform" is not very self explanatory. |
if (glfwPlatformSupported(GLFW_PLATFORM_WAYLAND)) {
/*
* Change the platform GLFW uses to enable GLX on Wayland as long as you
* have XWayland (X11 compatibility)
*/
if (!settings.isNativePlatform() && glfwPlatformSupported(GLFW_PLATFORM_X11)) {
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_X11);
}
} The code snippet explicitly checks for X11 compatibility within a Wayland platform. So, |
@riccardobl , @capdevon . Thank you for your suggestions and for reviewing this PR. In the end I think |
PR where support is implemented to change the default GLFW platform on Linux distributions or derivatives that support Wayland to use X11 (enable GLX).
This will open the ability to reposition windows and set icons for them, as Wayland currently does not have support for this, this works if you have XWayland enabled to have a bridge.
Wayland uses EGL by default to create GL contexts, which is great, but sometimes we need to use GLX for our applications, which is very useful. XWaylanda for GLX context.