瀏覽代碼

Fix Wayland build with OpenGL disabled.

Pāvels Nadtočajevs 4 天之前
父節點
當前提交
76433b0ede
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      platform/linuxbsd/wayland/display_server_wayland.cpp

+ 2 - 2
platform/linuxbsd/wayland/display_server_wayland.cpp

@@ -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;