mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
add OpenGL and DX11 backends (#7481)
# 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.
This commit is contained in:
parent
67826b21d4
commit
5ee57ff4ba
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue