Merge pull request #110294 from bruvzg/wl_no_gl

Fix Wayland build with OpenGL disabled.
This commit is contained in:
Thaddeus Crews 2025-09-08 13:57:27 -05:00
commit 7ac73a6142
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -1879,7 +1879,7 @@ DisplayServer *DisplayServerWayland::create_func(const String &p_rendering_drive
}
DisplayServerWayland::DisplayServerWayland(const String &p_rendering_driver, WindowMode p_mode, VSyncMode p_vsync_mode, uint32_t p_flags, const Vector2i &p_resolution, Context p_context, int64_t p_parent_window, Error &r_error) {
#ifdef GLES3_ENABLED
#if defined(GLES3_ENABLED) || defined(DBUS_ENABLED)
#ifdef SOWRAP_ENABLED
#ifdef DEBUG_ENABLED
int dylibloader_verbose = 1;
@ -1887,7 +1887,7 @@ DisplayServerWayland::DisplayServerWayland(const String &p_rendering_driver, Win
int dylibloader_verbose = 0;
#endif // DEBUG_ENABLED
#endif // SOWRAP_ENABLED
#endif // GLES3_ENABLED
#endif // defined(GLES3_ENABLED) || defined(DBUS_ENABLED)
r_error = ERR_UNAVAILABLE;
context = p_context;