Skip to content

Commit

Permalink
add OpenGL and DX11 backends (#7481)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
wangling12 committed Feb 4, 2023
1 parent 67826b2 commit 5ee57ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 5ee57ff

Please sign in to comment.