Improve Instance::available_backend_features() on macOS. (#5199)

This commit is contained in:
Bruce Mitchener
2024-02-06 00:13:32 +07:00
committed by GitHub
parent 32e70bc163
commit 01e94bc9b3

View File

@@ -1791,9 +1791,9 @@ impl Instance {
backends = backends.union(Backends::VULKAN);
}
// GL Vulkan on Mac is only available through angle.
// GL on Mac is only available through angle.
if cfg!(target_os = "macos") && cfg!(feature = "angle") {
backends = backends.union(Backends::VULKAN);
backends = backends.union(Backends::GL);
}
} else {
if cfg!(webgpu) {