From 5ee57ff4ba13925963a423770564647c61b3c709 Mon Sep 17 00:00:00 2001 From: wangling12 Date: Sat, 4 Feb 2023 23:20:20 +0000 Subject: [PATCH] add OpenGL and DX11 backends (#7481) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Objective Avoid ‘Unable to find a GPU! Make sure you have installed required drivers!’ . Because many devices only support OpenGL without Vulkan. Fixes #3191 ## Solution Use all backends supported by wgpu. --- crates/bevy_render/src/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/settings.rs b/crates/bevy_render/src/settings.rs index 423038a263d72..e9f859b0afe7d 100644 --- a/crates/bevy_render/src/settings.rs +++ b/crates/bevy_render/src/settings.rs @@ -48,7 +48,7 @@ impl Default for WgpuSettings { let default_backends = if cfg!(feature = "webgl") { Backends::GL } else { - Backends::PRIMARY + Backends::all() }; let backends = Some(wgpu::util::backend_bits_from_env().unwrap_or(default_backends));