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
@ -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…
Reference in New Issue
Block a user