mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +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") {
|
let default_backends = if cfg!(feature = "webgl") {
|
||||||
Backends::GL
|
Backends::GL
|
||||||
} else {
|
} else {
|
||||||
Backends::PRIMARY
|
Backends::all()
|
||||||
};
|
};
|
||||||
|
|
||||||
let backends = Some(wgpu::util::backend_bits_from_env().unwrap_or(default_backends));
|
let backends = Some(wgpu::util::backend_bits_from_env().unwrap_or(default_backends));
|
||||||
|
|
Loading…
Add table
Reference in a new issue