-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Wayland: Add support for OpenGL ES driver #91466
Conversation
Code looks super clean. I tested it locally on Fedora 40 Wayland and it works great with:
However I tried to test the fallback code by setting
While with X11 it seems to work:
|
This seems to fix it, and is similar to what X11 and is similar to what X11 and macOS do. diff --git a/platform/linuxbsd/wayland/display_server_wayland.cpp b/platform/linuxbsd/wayland/display_server_wayland.cpp
index 6efa1de7d2..f4b9d79867 100644
--- a/platform/linuxbsd/wayland/display_server_wayland.cpp
+++ b/platform/linuxbsd/wayland/display_server_wayland.cpp
@@ -1331,7 +1331,7 @@ DisplayServerWayland::DisplayServerWayland(const String &p_rendering_driver, Win
if (rendering_driver == "opengl3") {
egl_manager = memnew(EGLManagerWayland);
- if (egl_manager->initialize() != OK) {
+ if (egl_manager->initialize() != OK || egl_manager->open_display(nullptr) != OK) {
memdelete(egl_manager);
egl_manager = nullptr;
Then I get:
|
@akien-mga thanks for testing and for the patch! Indeed, it looks like I'll push the patch which I can confirm also works on my machine with the steps you provided :D |
Everything was already there, we just had to wire it up in the display server.
Thanks! |
Fixes #91371.
Everything was already there, we just had to wire it up in the display server.