diff options
author | David Snopek <dsnopek@gmail.com> | 2024-10-03 10:24:01 -0500 |
---|---|---|
committer | David Snopek <dsnopek@gmail.com> | 2024-10-04 11:44:05 -0500 |
commit | 256699ee317fde9b1712c0ddf12a6903773aaff4 (patch) | |
tree | 89c2e2e28d514e8f80a785d78435d9b5e05ede51 /platform/linuxbsd | |
parent | 2e144928793f17ebd70e1475bb7a7f4fd1095484 (diff) | |
download | redot-engine-256699ee317fde9b1712c0ddf12a6903773aaff4.tar.gz |
OpenXR: Add support for Wayland on Linux
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/wayland/display_server_wayland.cpp | 12 | ||||
-rw-r--r-- | platform/linuxbsd/x11/display_server_x11.cpp | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/platform/linuxbsd/wayland/display_server_wayland.cpp b/platform/linuxbsd/wayland/display_server_wayland.cpp index 3fbbc263a0..7a5ebb951e 100644 --- a/platform/linuxbsd/wayland/display_server_wayland.cpp +++ b/platform/linuxbsd/wayland/display_server_wayland.cpp @@ -627,6 +627,18 @@ int64_t DisplayServerWayland::window_get_native_handle(HandleType p_handle_type, } return 0; } break; + case EGL_DISPLAY: { + if (egl_manager) { + return (int64_t)egl_manager->get_display(p_window); + } + return 0; + } + case EGL_CONFIG: { + if (egl_manager) { + return (int64_t)egl_manager->get_config(p_window); + } + return 0; + } #endif // GLES3_ENABLED default: { diff --git a/platform/linuxbsd/x11/display_server_x11.cpp b/platform/linuxbsd/x11/display_server_x11.cpp index 97ea1147ec..622a48e48a 100644 --- a/platform/linuxbsd/x11/display_server_x11.cpp +++ b/platform/linuxbsd/x11/display_server_x11.cpp @@ -1861,6 +1861,18 @@ int64_t DisplayServerX11::window_get_native_handle(HandleType p_handle_type, Win } return 0; } + case EGL_DISPLAY: { + if (gl_manager_egl) { + return (int64_t)gl_manager_egl->get_display(p_window); + } + return 0; + } + case EGL_CONFIG: { + if (gl_manager_egl) { + return (int64_t)gl_manager_egl->get_config(p_window); + } + return 0; + } #endif default: { return 0; |