浏览代码

Fix wrong Wayland path if building with opengl3=no

Godot checks if there's Vulkan or GLES3 support.
If no support is found, it shows an error message.

However the code for this error message is left out when building with
opengl3=no
Matias N. Goldberg 11 月之前
父节点
当前提交
0818408db5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/linuxbsd/wayland/display_server_wayland.cpp

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

@@ -1479,12 +1479,12 @@ DisplayServerWayland::DisplayServerWayland(const String &p_rendering_driver, Win
 			driver_found = true;
 		}
 	}
+#endif // GLES3_ENABLED
 
 	if (!driver_found) {
 		r_error = ERR_UNAVAILABLE;
 		ERR_FAIL_MSG("Video driver not found.");
 	}
-#endif // GLES3_ENABLED
 
 	cursor_set_shape(CURSOR_BUSY);